X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fcharging-station%2FChargingStation.ts;h=5f4f58b4ca86ea224ead2612b1d44c8d5282ab83;hb=0d1f33bab47bbcd712ea6ae7e26293917c8bc398;hp=b6aa7b98137a085eb9f4539b14edd8d50984ea59;hpb=90aceaf6e0cd749bc5feb4e50c89f2a213c53108;p=e-mobility-charging-stations-simulator.git diff --git a/src/charging-station/ChargingStation.ts b/src/charging-station/ChargingStation.ts index b6aa7b98..5f4f58b4 100644 --- a/src/charging-station/ChargingStation.ts +++ b/src/charging-station/ChargingStation.ts @@ -986,7 +986,7 @@ export class ChargingStation { break; default: // eslint-disable-next-line @typescript-eslint/restrict-template-expressions - throw new Error(`Unknown reservation termination reason '${reason}'`); + throw new BaseError(`Unknown reservation termination reason '${reason}'`); } }