Class DevlanderError

Create an Error with the specified message, config, error code, request, and response.

Param: message

The error message.

Param: code

The error code (for example, 'ECONNABORTED').

Param: config

The config.

Hierarchy

  • Error
    • DevlanderError

Constructors

Properties

cause?: unknown
code?: string
config?: ErrorConfig
message: string
name: string
stack?: string
prepareStackTrace?: ((err, stackTraces) => any)

Optional override for formatting stack traces

Type declaration

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc