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
Rollup upgrade
[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 ea34d943f741a7253bea31a1302259e8b0694f0c..ae86c0a160138657b193aa413258349874570ca5 100644
(file)
--- a/
src/charging-station/OcppError.ts
+++ b/
src/charging-station/OcppError.ts
@@
-1,13
+1,13
@@
-import
Constants from '../utils/Constants
';
+import
{ ErrorType } from '../types/ocpp/ErrorType
';
export default class OCPPError extends Error {
code: string;
export default class OCPPError extends Error {
code: string;
- details: any;
+ details
?
: any;
- constructor(code: string, message: string, details?) {
+ constructor(code: string, message: string, details?
: any
) {
super(message);
super(message);
- this.code = code ||
Constants.OCPP_ERROR_
GENERIC_ERROR;
+ this.code = code ||
ErrorType.
GENERIC_ERROR;
this.message = message || '';
this.details = details || {};
this.message = message || '';
this.details = details || {};