UnprocessableEntityError class
DioErrorType.response && statusCode == 422
- Inheritance
-
- Object
- EatsmartNetworkError
- UnprocessableEntityError
- Implemented types
Constructors
- UnprocessableEntityError({required RequestOptions requestOptions, Response? response, DioErrorType type = DioErrorType.other, dynamic error})
- UnprocessableEntityError.fromDioError(DioError e)
-
factory
Properties
- error ↔ dynamic
-
The original error/exception object; It's usually not null when
type
is DioErrorType.othergetter/setter pairinherited - hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
no setterinherited
- requestOptions ↔ RequestOptions
-
Request info.
getter/setter pairinherited
- response ↔ Response?
-
Response info, it may be
null
if the request can't reach to the http server, for example, occurring a dns error, network is not available.getter/setter pairinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stackTrace ↔ StackTrace?
-
getter/setter pairinherited
- type ↔ DioErrorType
-
getter/setter pairinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String - A string representation of this object.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited