Agent Armor API Reference
    Preparing search index...

    Interface ErrorEvent

    Fired when something unexpected happened and was caught (e.g. a detector threw).

    interface ErrorEvent {
        context?: Record<string, unknown>;
        error: Error;
        message: string;
    }
    Index
    context?: Record<string, unknown>

    Structured context for the condition, when available (e.g. which detector).

    error: Error

    The actual caught error, for stack traces / instanceof checks / Sentry, etc.

    message: string

    Human-readable message — identical text to what would otherwise go to console.warn.