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
docs: add FIXME
[e-mobility-charging-stations-simulator.git]
/
src
/
exception
/
OCPPError.ts
diff --git
a/src/exception/OCPPError.ts
b/src/exception/OCPPError.ts
index 8ccc4fbf937000220be6cd026c8dec6f7cd9431d..35df1f5083643929e5c35bc309ed33be82335d93 100644
(file)
--- a/
src/exception/OCPPError.ts
+++ b/
src/exception/OCPPError.ts
@@
-7,6
+7,7
@@
import {
type JsonType,
type RequestCommand,
} from '../types';
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
;
}
}
}
}