Hierarchy

  • BaseError
    • ProxyConnectError

Constructors

Properties

baseBusinessErrorName: string
data: Record<string, unknown>
debugUri: string
details: string
isBusinessError: true = true
message: string
name: string
source: "Proxy" = 'Proxy'
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Type declaration

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

  • We cannot rely on instanceof because there can be some mismatch between packages versions as dependencies of different packages. So this function is a workaround to check if an error is of a specific type.

    Parameters

    • error: Error
    • ErrorConstructor: (new (...args: never[]) => Error)
        • new (...args: never[]): Error
        • Parameters

          • Rest ...args: never[]

          Returns Error

    Returns boolean