BloomNativeHardwareUnavailableException class
Thrown when a hardware sensor, camera, or peripheral device is busy, absent, or disabled.
Example:
try {
await bluetoothModule.scan();
} on BloomNativeHardwareUnavailableException catch (e) {
print('Hardware unavailable: ${e.hardware}');
}
- Inheritance
-
- Object
- BloomNativeException
- BloomNativeHardwareUnavailableException
Constructors
-
Creates a BloomNativeHardwareUnavailableException with the missing
hardwareidentifier 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
- hardware → String
-
The hardware device or sensor identifier that was unavailable (e.g.
'camera','bluetooth').final - hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
Human-readable error description.
finalinherited
- 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