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
Merge branch 'master' of github.com:LucasBrazi06/ev-simulator into master-enterprise
[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 d11ad56f0b632d0ef826d8d8e9adad464057e5e8..d39cdef1c8f5baa039c7941d51cfb724ce8569df 100644
(file)
--- a/
src/charging-station/OcppError.ts
+++ b/
src/charging-station/OcppError.ts
@@
-1,4
+1,4
@@
-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;
@@
-7,7
+7,7
@@
export default class OCPPError extends Error {
constructor(code: string, message: string, details?: any) {
super(message);
constructor(code: string, message: string, details?: any) {
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 || {};