Add tunable for phase line to line voltage MeterValues
[e-mobility-charging-stations-simulator.git] / src / charging-station / OcppError.ts
index ae86c0a160138657b193aa413258349874570ca5..6780b60bcc032bc8f3470069b0150836c4d42dcf 100644 (file)
@@ -7,9 +7,9 @@ export default class OCPPError extends Error {
   constructor(code: string, message: string, details?: any) {
     super(message);
 
-    this.code = code || ErrorType.GENERIC_ERROR;
-    this.message = message || '';
-    this.details = details || {};
+    this.code = code ?? ErrorType.GENERIC_ERROR;
+    this.message = message ?? '';
+    this.details = details ?? {};
 
     Object.setPrototypeOf(this, OCPPError.prototype); // For instanceof