PermissionException class
Exception thrown when the app does not have sufficient permissions to perform a certain action or access a protected resource.
For example, when a user denies location permissions or other required access.
- Inheritance
-
- Object
- ApiException
- PermissionException
Constructors
- PermissionException({int? statusCode, String? message})
-
Creates a PermissionException with an optional
statusCodeandmessage.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String?
-
A human-readable message providing more details about the error.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- statusCode → int?
-
The HTTP status code associated with the error, if available.
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