- this.code = code ?? ErrorType.GENERIC_ERROR;
- this.command = command;
- this.details = details ?? {};
+ this.code = code;
+ this.command =
+ command ?? (Constants.UNKNOWN_COMMAND as RequestCommand | IncomingRequestCommand);
+ this.details = details;