1 // Partial Copyright Jerome Benoit. 2021-2023. All Rights Reserved.
3 import { BaseError
} from
'./BaseError';
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
?? {};