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
Update src/charging-station/ChargingStation.ts
[e-mobility-charging-stations-simulator.git]
/
src
/
exception
/
OCPPError.ts
diff --git
a/src/exception/OCPPError.ts
b/src/exception/OCPPError.ts
index 3b23cc3b0d0c18a650a203042810750bd1e89b22..35df1f5083643929e5c35bc309ed33be82335d93 100644
(file)
--- a/
src/exception/OCPPError.ts
+++ b/
src/exception/OCPPError.ts
@@
-1,12
+1,13
@@
// Partial Copyright Jerome Benoit. 2021-2023. All Rights Reserved.
// Partial Copyright Jerome Benoit. 2021-2023. All Rights Reserved.
-import { BaseError } from './
internal
';
+import { BaseError } from './
BaseError
';
import {
ErrorType,
type IncomingRequestCommand,
type JsonType,
type RequestCommand,
} from '../types';
import {
ErrorType,
type IncomingRequestCommand,
type JsonType,
type RequestCommand,
} from '../types';
+import { Constants } from '../utils';
export class OCPPError extends BaseError {
code: ErrorType;
export class OCPPError extends BaseError {
code: ErrorType;
@@
-23,6
+24,6
@@
export class OCPPError extends BaseError {
this.code = code ?? ErrorType.GENERIC_ERROR;
this.command = command;
this.code = code ?? ErrorType.GENERIC_ERROR;
this.command = command;
- this.details = details ??
{}
;
+ this.details = details ??
Constants.EMPTY_FREEZED_OBJECT
;
}
}
}
}