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
Keep track of the connector status and restore it properly on reload.
[e-mobility-charging-stations-simulator.git]
/
src
/
charging-station
/
OcppError.ts
diff --git
a/src/charging-station/OcppError.ts
b/src/charging-station/OcppError.ts
index a43c62d30fc07791fe6195bd0d76942b3ce74d19..3de71eb539125bc22de51da613948a7ea6b8e444 100644
(file)
--- a/
src/charging-station/OcppError.ts
+++ b/
src/charging-station/OcppError.ts
@@
-1,10
+1,10
@@
import Constants from '../utils/Constants';
export default class OCPPError extends Error {
import Constants from '../utils/Constants';
export default class OCPPError extends Error {
- code;
- details;
+ code
: string
;
+ details
: any
;
- constructor(code
, message
, details?) {
+ constructor(code
: string, message:string
, details?) {
super(message);
this.code = code || Constants.OCPP_ERROR_GENERIC_ERROR;
super(message);
this.code = code || Constants.OCPP_ERROR_GENERIC_ERROR;