BloomNativePermissionDeniedException class
Thrown when a required native OS permission was denied, restricted, or permanently blocked.
Example:
try {
await cameraModule.takePicture();
} on BloomNativePermissionDeniedException catch (e) {
print('Camera access denied for permission: ${e.permission}');
}
- Inheritance
-
- Object
- BloomNativeException
- BloomNativePermissionDeniedException
Constructors
- BloomNativePermissionDeniedException({required String permission, required String message, dynamic details})
-
Creates a BloomNativePermissionDeniedException with the denied
permissionname andmessage.
Properties
- code → String
-
Machine-readable error code (e.g.
'PERMISSION_DENIED','HARDWARE_UNAVAILABLE').finalinherited - details → dynamic
-
Optional platform-specific error payload or metadata dictionary.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
Human-readable error description.
finalinherited
- permission → String
-
The permission name that was denied (e.g.
'camera','location').final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stackTrace → StackTrace?
-
Original stack trace from the host platform or Dart runtime.
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