Spektrum API Reference - v1.2.0
    Preparing search index...

    Type Alias ErrorHandler

    ErrorHandler: (
        err: Error & { code?: EngineErrorCode },
        system: SystemFn | null,
    ) => void

    Errors received by onError. Engine-originated errors carry a code discriminator; system-thrown errors are passed through with their original identity (no code).

    Type Declaration