FetchDataException class
Exception thrown when there is an error in fetching data from the API.
FetchDataException is used when the client is unable to retrieve data from the server, possibly due to a network error or server issue.
- Inheritance
-
- Object
- AppException
- FetchDataException
Constructors
- FetchDataException(String status, String statusMessage, bool success)
-
Creates a FetchDataException 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.
finalinherited
- statusMessage → String
-
The message associated with the status code.
finalinherited
- success → bool
-
A flag indicating whether the API request was successful.
finalinherited
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