UnAuthorizedException class
Exception thrown when the API request is unauthorized (401).
UnAuthorizedException indicates that the client is not authorized to make the API request, possibly due to invalid or missing credentials.
- Inheritance
-
- Object
- AppException
- UnAuthorizedException
Constructors
- UnAuthorizedException(String status, String statusMessage, bool success)
-
Creates an UnAuthorizedException 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