repositories
/
e-mobility-charging-stations-simulator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Import cleanups
[e-mobility-charging-stations-simulator.git]
/
src
/
exception
/
OCPPError.ts
diff --git
a/src/exception/OCPPError.ts
b/src/exception/OCPPError.ts
index bfe64fb43a657049e27ce451787de42933b310f6..e3c127fd22e375921f3303e0f70f2285ea7d6451 100644
(file)
--- a/
src/exception/OCPPError.ts
+++ b/
src/exception/OCPPError.ts
@@
-1,21
+1,20
@@
-// Partial Copyright Jerome Benoit. 2021. All Rights Reserved.
+// Partial Copyright Jerome Benoit. 2021
-2023
. All Rights Reserved.
-import { IncomingRequestCommand, RequestCommand } from '../types/ocpp/Requests';
-
-import BaseError from './BaseError';
+import type { JsonType } from '../types/JsonType';
import { ErrorType } from '../types/ocpp/ErrorType';
import { ErrorType } from '../types/ocpp/ErrorType';
-import { JsonObject } from '../types/JsonType';
+import type { IncomingRequestCommand, RequestCommand } from '../types/ocpp/Requests';
+import BaseError from './BaseError';
export default class OCPPError extends BaseError {
code: ErrorType;
command?: RequestCommand | IncomingRequestCommand;
export default class OCPPError extends BaseError {
code: ErrorType;
command?: RequestCommand | IncomingRequestCommand;
- details?: Json
Object
;
+ details?: Json
Type
;
constructor(
code: ErrorType,
message: string,
command?: RequestCommand | IncomingRequestCommand,
constructor(
code: ErrorType,
message: string,
command?: RequestCommand | IncomingRequestCommand,
- details?: Json
Object
+ details?: Json
Type
) {
super(message);
) {
super(message);