Error thrown when an Axios request is made but no response is received

Hierarchy (View Summary)

Constructors

Properties

cause?: unknown
correlationId?: string
errorLink?: string
errorMessage: string
errorType: APIErrorType
message: string
name: string
stack?: string
statusCode: number
prepareStackTrace?: (err: Error, stackTraces: CallSite[]) => any

Optional override for formatting stack traces

stackTraceLimit: number

Methods

  • Convert the error to a JSON object, excluding undefined properties

    Returns {
        correlationId?: string;
        errorLink?: string;
        errorMessage: string;
        errorType: APIErrorType;
        name: string;
        statusCode: number;
    }

    The error as a JSON object

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void