X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fcharging-station%2FOcppError.ts;h=3de71eb539125bc22de51da613948a7ea6b8e444;hb=6b0ce541bc90c0481c8b3816d8c75bcb77290b4d;hp=a43c62d30fc07791fe6195bd0d76942b3ce74d19;hpb=6af9012e5b9ef2ed6f4fe8a9696b40ac0e8da4d0;p=e-mobility-charging-stations-simulator.git diff --git a/src/charging-station/OcppError.ts b/src/charging-station/OcppError.ts index a43c62d3..3de71eb5 100644 --- a/src/charging-station/OcppError.ts +++ b/src/charging-station/OcppError.ts @@ -1,10 +1,10 @@ import Constants from '../utils/Constants'; export default class OCPPError extends Error { - code; - details; + code: string; + details: any; - constructor(code, message, details?) { + constructor(code: string, message:string , details?) { super(message); this.code = code || Constants.OCPP_ERROR_GENERIC_ERROR;