DeekWebResponse<RequestType extends DeekWebRequest, ResponseType>.fromError constructor
DeekWebResponse<RequestType extends DeekWebRequest, ResponseType>.fromError ({
- required DeekWebRequest<
ResponseType> request, - 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;