UNPKG

@munit-solutions/ocpp

Version:
15 lines (13 loc) 391 B
import ErrorCode from '../enum/ErrorCode'; import ClientCommand from '../enum/ClientCommand'; export default class CallError extends Error { constructor( public messageType: ClientCommand, public id: string, public errorCode: ErrorCode, public errorDescription: { [key: string]: any }, ) { super(JSON.stringify(errorDescription)); this.name = "CallError"; } }