Sign up (with export icon)

AIErrorReporter

Api-class iconclass

Per-feature reporter created via createReporter.

Methods

  • Chevron-right icon

    constructor( sink, component )

    Created via createReporter.

    Parameters

    sink : AIErrorSink
    component : string
  • Chevron-right icon

    logError( error, options ) → void

    Forwards the error to the sink and writes it to the console. Aborts are dropped.

    Parameters

    error : unknown
    options : AIErrorReporterOptions

    Defaults to {}

    Returns

    void
  • Chevron-right icon

    reportError( error, options ) → void

    Forwards the error to the sink without writing to the console. Aborts are dropped.

    Parameters

    error : unknown
    options : AIErrorReporterOptions

    Defaults to {}

    Returns

    void