BloomNativeException class

Base exception for errors originating across the Bloom Native Module boundary.

Encapsulates machine-readable error codes, human-readable error messages, platform-specific error detail payloads, and stack traces.

Example:

try {
  await cameraModule.invokeAsync('takePicture');
} on BloomNativeException catch (e) {
  print('Native error [${e.code}]: ${e.message}');
}
Implemented types
Implementers

Constructors

BloomNativeException({required String code, required String message, dynamic details, StackTrace? stackTrace})
Creates a BloomNativeException instance.
const

Properties

code String
Machine-readable error code (e.g. 'PERMISSION_DENIED', 'HARDWARE_UNAVAILABLE').
final
details → dynamic
Optional platform-specific error payload or metadata dictionary.
final
hashCode int
The hash code for this object.
no setterinherited
message String
Human-readable error description.
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.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited