RhttpStatusCodeException class
An exception thrown on a 4xx or 5xx status code.
- Inheritance
-
- Object
- RhttpException
- RhttpStatusCodeException
Constructors
-
RhttpStatusCodeException.new({required HttpRequest request, required int statusCode, required List<
(String, String)> headers, required Object? body}) -
const
Properties
- body → Object?
-
The response body. For simplicity, we don't differentiate between
text or bytes. Streams are always null.
Can be String, Uint8List, or null.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headerMap
→ Map<
String, String> -
Response headers converted as a map.
no setter
-
headerMapList
→ Map<
String, List< String> > -
Response headers converted as a map respecting multiple values.
no setter
-
headers
→ List<
(String, String)> -
Response headers.
final
- request → HttpRequest
-
The associated request when the exception was thrown.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- statusCode → int
-
The status code of the response.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited