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 'main' into reservation-feature
[e-mobility-charging-stations-simulator.git]
/
src
/
charging-station
/
ocpp
/
OCPPRequestService.ts
diff --git
a/src/charging-station/ocpp/OCPPRequestService.ts
b/src/charging-station/ocpp/OCPPRequestService.ts
index 2a6a8c1884898d9d3c123cd071cda6f88c9befe0..a3b78ca63ec8e40d44a07c7a12f9689ed38eee63 100644
(file)
--- a/
src/charging-station/ocpp/OCPPRequestService.ts
+++ b/
src/charging-station/ocpp/OCPPRequestService.ts
@@
-23,7
+23,7
@@
import {
type ResponseCallback,
type ResponseType,
} from '../../types';
type ResponseCallback,
type ResponseType,
} from '../../types';
-import { Constants,
ErrorUtils, Utils
, logger } from '../../utils';
+import { Constants,
Utils, handleSendMessageError
, logger } from '../../utils';
const moduleName = 'OCPPRequestService';
const moduleName = 'OCPPRequestService';
@@
-133,7
+133,7
@@
export abstract class OCPPRequestService {
commandName
);
} catch (error) {
commandName
);
} catch (error) {
-
ErrorUtils.
handleSendMessageError(chargingStation, commandName, error as Error, {
+ handleSendMessageError(chargingStation, commandName, error as Error, {
throwError: true,
});
}
throwError: true,
});
}
@@
-155,7
+155,7
@@
export abstract class OCPPRequestService {
commandName
);
} catch (error) {
commandName
);
} catch (error) {
-
ErrorUtils.
handleSendMessageError(chargingStation, commandName, error as Error);
+ handleSendMessageError(chargingStation, commandName, error as Error);
}
}
}
}
@@
-180,7
+180,7
@@
export abstract class OCPPRequestService {
params
);
} catch (error) {
params
);
} catch (error) {
-
ErrorUtils.
handleSendMessageError(chargingStation, commandName, error as Error, {
+ handleSendMessageError(chargingStation, commandName, error as Error, {
throwError: params.throwError,
});
}
throwError: params.throwError,
});
}