X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fcharging-station%2FOcppError.ts;h=1f384783a90e428c12bdb48ea7b05f8189ab4373;hb=a4a217091f3e2b774e3b5e5c835f59f80684fcff;hp=a43c62d30fc07791fe6195bd0d76942b3ce74d19;hpb=3de4921b38a51ba68195bc08399ad9e1c4fe4aab;p=e-mobility-charging-stations-simulator.git diff --git a/src/charging-station/OcppError.ts b/src/charging-station/OcppError.ts index a43c62d3..1f384783 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; + code: string; details; - constructor(code, message, details?) { + constructor(code: string, message:string , details?) { super(message); this.code = code || Constants.OCPP_ERROR_GENERIC_ERROR;