HttpException class
An exception originating from a HTTP response with non-success status code.
- Inheritance
-
- Object
- ApiException
- OriginException
- HttpException
Constructors
- HttpException.new(Uri reference, BaseResponse response, {String? message})
-
Create an exception of
reference
andresponse
.
Properties
- failure → OriginFailure
-
Common failure type. By default
undefined
if not set.no setteroverride - hashCode → int
-
The hash code for this object.
no setterinherited
- isBadRequest → bool
-
True if failure is
badRequest
.no setterinherited - isForbidden → bool
-
True if failure is
forbidden
.no setterinherited - isNotAcceptable → bool
-
True if failure is
notAcceptable
.no setterinherited - isNotFound → bool
-
True if failure is
notFound
.no setterinherited - isNotModified → bool
-
True if failure is
notModified
.no setterinherited -
True if failure is
unauthorized
.no setterinherited - message → String
-
The descriptive message.
finalinherited
- reasonPhrase → String?
-
Protocol (like HTTP) specific reason phrase. By default nul if not set.
no setteroverride
- reference → Uri?
-
An optional URI reference for an API resoure.
finalinherited
- response → BaseResponse
-
The HTTP response that caused this exception.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- statusCode → int
-
Protocol (like HTTP) specific status code. By default 0 if not set.
no setteroverride
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited