Skip to content

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

NameTypeDescription
messagestringError message.

Returns

A native bridge error instance.

Type signature

ts
declare class NativeBridgeError extends Error {
    constructor(message: string);
}

All packages are released under the MIT License.