+ protected handleIncomingRequestError<T>(commandName: IncomingRequestCommand, error: Error, errorOcppResponse?: T): T {
+ logger.error(this.chargingStation.logPrefix() + ' Incoming request command ' + commandName + ' error: %j', error);
+ if (errorOcppResponse) {
+ return errorOcppResponse;
+ }
+ throw error;
+ }
+