type JsonType,
type RequestCommand,
} from '../types';
+import { Constants } from '../utils';
export class OCPPError extends BaseError {
code: ErrorType;
this.code = code ?? ErrorType.GENERIC_ERROR;
this.command = command;
- this.details = details ?? {};
+ this.details = details ?? Constants.EMPTY_FREEZED_OBJECT;
}
}