ErrorModel<T extends INetworkModel<T>?> class final

Error model for network response

Inheritance

Constructors

ErrorModel({int? statusCode, String? description, T? model})
Error model for network response statusCode Error status code as http result description Error message
ErrorModel.dioException(DioException exception)
Error model for network response exception Dio exception
factory
ErrorModel.jsonError()
Json Parse Error
factory
ErrorModel.parseError()
Null is returned after parsing a model
factory

Properties

description String?
Error message
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
model ↔ T?
Error model
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusCode int?
Error status code as http result
getter/setter pairinherited

Methods

copyWith({int? statusCode, String? description, T? model}) ErrorModel<T>
Make a copy of this object with new values for some of its properties
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