3b23cc3b0d0c18a650a203042810750bd1e89b22
1 // Partial Copyright Jerome Benoit. 2021-2023. All Rights Reserved.
3 import { BaseError
} from
'./internal';
6 type IncomingRequestCommand
,
11 export class OCPPError
extends BaseError
{
13 command
?: RequestCommand
| IncomingRequestCommand
;
19 command
?: RequestCommand
| IncomingRequestCommand
,
24 this.code
= code
?? ErrorType
.GENERIC_ERROR
;
25 this.command
= command
;
26 this.details
= details
?? {};