axios-error-redact
    Preparing search index...

    Class AxiosErrorRedactor

    This class is used to redact sensitive data from Axios error objects.

    Index

    Constructors

    Methods

    • Redacts sensitive data from the Axios rejection error

      Parameters

      • error: undefined | null | AxiosError<unknown, any>

        any of errors that can be thrown by axios

      Returns undefined | null | HttpErrorResponse | Error

      HttpErrorResponse in case of axios error, otherwise passthrough the error