X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fexception%2FOCPPError.ts;h=f624d7e79704026eb60925f88ba3ddd0ae56de97;hb=61e0f0426f3b5ffb6738bc1f6b61ff9ed789377b;hp=c5d25ddc23d402070437d511dce6a3ea11156bc3;hpb=59b6ed8d1db313ef3371efd8ab5e039cf3dedab0;p=e-mobility-charging-stations-simulator.git diff --git a/src/exception/OCPPError.ts b/src/exception/OCPPError.ts index c5d25ddc..f624d7e7 100644 --- a/src/exception/OCPPError.ts +++ b/src/exception/OCPPError.ts @@ -1,6 +1,6 @@ // Partial Copyright Jerome Benoit. 2021-2023. All Rights Reserved. -import { BaseError } from './internal'; +import { BaseError } from './BaseError'; import { ErrorType, type IncomingRequestCommand, @@ -18,12 +18,12 @@ export class OCPPError extends BaseError { code: ErrorType, message: string, command?: RequestCommand | IncomingRequestCommand, - details?: JsonType + details?: JsonType, ) { super(message); this.code = code ?? ErrorType.GENERIC_ERROR; this.command = command; - this.details = details ?? Constants.EMPTY_FREEZED_OBJECT; + this.details = details ?? Constants.EMPTY_FROZEN_OBJECT; } }