fail<F> static method

RequestResponse<F?> fail<F>(
  1. ErrorDetail errorDetail
)

Returns a RequestResponse instance with the error details ErrorDetail if any

Implementation

static RequestResponse<F?> fail<F>(ErrorDetail errorDetail) =>
    RequestResponse<F?>(errorDetail.info?.httpCode, false, null,
        error: errorDetail);