monitor-api - v1.8.0
    Preparing search index...

    Interface IErrorCollector

    Public API exposed by the optional error collector.

    interface IErrorCollector {
        onError: SSignal<MonitorError | null>;
        snapshot: SSignal<ErrorSnapshot>;
        capture(error: unknown, source?: MonitorErrorSource): void;
        clearLog(): void;
        destroy(): void;
        start(): void;
        stop(): void;
    }
    Index

    Properties

    onError: SSignal<MonitorError | null>

    Signal set to the latest captured error, or null before any error is captured.

    snapshot: SSignal<ErrorSnapshot>

    Signal containing retained errors and lifetime counters.

    Methods

    • Clears retained entries while preserving lifetime counters.

      Returns void

    • Starts browser error and unhandled rejection listeners.

      Returns void