ErrorResponse<T> class final

Represents a failed API call or a business logic error from the server.

Contains detailed error information and optional partial data.

Inheritance

Constructors

ErrorResponse({required bool status, required int statusCode, required String message, required String error, T? data})
const

Properties

data → T?
final
error String
final
hashCode int
The hash code for this object.
no setterinherited
message String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status bool
final
statusCode int
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts the error response back to a JSON-compatible map.
toString() String
A string representation of this object.
override

Operators

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