DeekWebResponse<RequestType extends DeekWebRequest, ResponseType>.fromError constructor

DeekWebResponse<RequestType extends DeekWebRequest, ResponseType>.fromError({
  1. required DeekWebRequest<ResponseType> request,
  2. required DeekWebException? exception,
})

Creates a DeekWebResponse from an error, with no other response data.

Implementation

DeekWebResponse.fromError({required this.request, required this.exception})
    : latencyMs = 0,
      data = null,
      statusCode = null;