- constructor(code: ErrorType | IncomingRequestCommand, message: string, command?: RequestCommand | IncomingRequestCommand, details?: JsonType) {
- super(message);
-
- this.code = code ?? ErrorType.GENERIC_ERROR;
- this.command = command;
- this.details = details ?? {};