Implementation of Angular's ErrorHandler provider that can be used as a drop-in replacement for the stock one.

Hierarchy

  • SentryErrorHandler

Implements

  • ErrorHandler

Methods

  • Default implementation of error extraction that handles default error wrapping, HTTP responses, ErrorEvent and few other known cases.

    Parameters

    • errorCandidate: unknown

    Returns unknown

  • Used to pull a desired value that will be used to capture an event out of the raw value captured by ErrorHandler.

    Parameters

    • error: unknown

    Returns unknown

  • Method called for every value captured through the ErrorHandler

    Parameters

    • error: unknown

    Returns void

Generated using TypeDoc