APIError class

Provides information about the errors happened during execution of the requests

Implemented types

Constructors

APIError({required int status, required String statusText, required List<ErrorEntry> items})
Creates a instance of APIError
APIError.fromJson(Map<String, dynamic> json)
Creates a instance of APIError from JsonMap.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
items List<ErrorEntry>
Array of error entries that provide detailed information about the errors occured during excution of the request
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status int
HTTP response code in the 100–599 range
final
statusText String
Status text as reported by the server, e.g. "Unauthorized"
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited