Apply dependencies update
[e-mobility-charging-stations-simulator.git] / src / exception / OCPPError.ts
index bfe64fb43a657049e27ce451787de42933b310f6..563575a321fbcc1d1e985decea92fb9b34523ffd 100644 (file)
@@ -1,21 +1,20 @@
 // Partial Copyright Jerome Benoit. 2021. All Rights Reserved.
 
+import { JsonType } from '../types/JsonType';
+import { ErrorType } from '../types/ocpp/ErrorType';
 import { IncomingRequestCommand, RequestCommand } from '../types/ocpp/Requests';
-
 import BaseError from './BaseError';
-import { ErrorType } from '../types/ocpp/ErrorType';
-import { JsonObject } from '../types/JsonType';
 
 export default class OCPPError extends BaseError {
   code: ErrorType;
   command?: RequestCommand | IncomingRequestCommand;
-  details?: JsonObject;
+  details?: JsonType;
 
   constructor(
     code: ErrorType,
     message: string,
     command?: RequestCommand | IncomingRequestCommand,
-    details?: JsonObject
+    details?: JsonType
   ) {
     super(message);