Apply dependencies update
[e-mobility-charging-stations-simulator.git] / src / exception / OCPPError.ts
index 9f2b22623dc65085fac88b4c9191d3a3c86e9061..563575a321fbcc1d1e985decea92fb9b34523ffd 100644 (file)
@@ -1,18 +1,17 @@
 // 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 { JsonType } from '../types/JsonType';
 
 export default class OCPPError extends BaseError {
-  code: ErrorType | IncomingRequestCommand;
+  code: ErrorType;
   command?: RequestCommand | IncomingRequestCommand;
   details?: JsonType;
 
   constructor(
-    code: ErrorType | IncomingRequestCommand,
+    code: ErrorType,
     message: string,
     command?: RequestCommand | IncomingRequestCommand,
     details?: JsonType