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
-
- Object
- AppResponse<
T> - ErrorResponse
Constructors
- ErrorResponse({required bool status, required int statusCode, required String message, required String error, T? data})
-
const
Properties
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