X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fexception%2FOCPPError.ts;h=bfe64fb43a657049e27ce451787de42933b310f6;hb=e3822d6f1b40477f7308ad70c290ed2c4106c585;hp=e67f3c95f56c38b81a22e1c70a1be191199e610c;hpb=094889611486ef8717ae9d6850a1ccb1e6ca6027;p=e-mobility-charging-stations-simulator.git diff --git a/src/exception/OCPPError.ts b/src/exception/OCPPError.ts index e67f3c95..bfe64fb4 100644 --- a/src/exception/OCPPError.ts +++ b/src/exception/OCPPError.ts @@ -4,18 +4,18 @@ import { IncomingRequestCommand, RequestCommand } from '../types/ocpp/Requests'; import BaseError from './BaseError'; import { ErrorType } from '../types/ocpp/ErrorType'; -import { JsonType } from '../types/JsonType'; +import { JsonObject } from '../types/JsonType'; export default class OCPPError extends BaseError { code: ErrorType; command?: RequestCommand | IncomingRequestCommand; - details?: JsonType; + details?: JsonObject; constructor( code: ErrorType, message: string, command?: RequestCommand | IncomingRequestCommand, - details?: JsonType + details?: JsonObject ) { super(message);