toHttpError method

HttpError toHttpError()

Implementation

HttpError toHttpError() {
  return HttpError(
    createdAt: DateTime.now().millisecondsSinceEpoch,
    stackTrace: stackTrace.toString(),
    errorStatusCode: response?.statusCode,
    errorHashCode: requestOptions.hashCode,
    errorMessage: message,
  );
}