AppException class
A base class for handling exceptions in the application.
AppException includes the status, status message, and success flag associated with an API request.
- Implemented types
- Implementers
Constructors
- AppException(String status, String statusMessage, bool success)
-
Creates an AppException with the given
status,statusMessage, andsuccess.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → String
-
The status code returned from the API.
final
- statusMessage → String
-
The message associated with the status code.
final
- success → bool
-
A flag indicating whether the API request was successful.
final
Methods
-
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