BridgeDecodeException class final

Thrown when decoding a native response into the expected Dart type fails.

Usually indicates a type mismatch between the registered TypeAdapter and the actual native response shape.

Inheritance

Constructors

BridgeDecodeException({required String message, String? requestId, Object? cause})
Creates a BridgeDecodeException.
const

Properties

cause Object?
The underlying cause (e.g., a PlatformException or FormatException).
finalinherited
code String
Machine-readable error code (e.g., 'BRIDGE_TIMEOUT').
finalinherited
hashCode int
The hash code for this object.
no setterinherited
message String
Human-readable description of the error.
finalinherited
nativeStackTrace String?
Stack trace from the native side, if provided.
finalinherited
requestId String?
The BridgeEnvelope.id of the request that failed, if applicable.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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