NativeBridgeError
Base class for native bridge runtime errors. It provides a shared parent for bridge-specific failures so callers can distinguish them from unrelated application errors.
Importing
ts
import { NativeBridgeError } from '@almighty-shogun/webkit-native-bridge'Usage
ts
import { NativeBridgeError } from '@almighty-shogun/webkit-native-bridge'
throw new NativeBridgeError('Bridge request failed');Parameters
| Name | Type | Description |
|---|---|---|
message | string | Error message. |
Returns
A native bridge error instance.
Type signature
ts
declare class NativeBridgeError extends Error {
constructor(message: string);
}