Skip to main content

Class: IotaHTTPStatusError

Extends

Constructors

new IotaHTTPStatusError()

new IotaHTTPStatusError(message, status, statusText): IotaHTTPStatusError

Parameters

message: string

status: number

statusText: string

Returns

IotaHTTPStatusError

Overrides

IotaHTTPTransportError.constructor

Properties

prepareStackTrace()?

static optional prepareStackTrace: (err, stackTraces) => any

Optional override for formatting stack traces

Parameters

err: Error

stackTraces: CallSite[]

Returns

any

See

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

Inherited from

IotaHTTPTransportError.prepareStackTrace


stackTraceLimit

static stackTraceLimit: number

Inherited from

IotaHTTPTransportError.stackTraceLimit


cause?

optional cause: unknown

Inherited from

IotaHTTPTransportError.cause


name

name: string

Inherited from

IotaHTTPTransportError.name


message

message: string

Inherited from

IotaHTTPTransportError.message


stack?

optional stack: string

Inherited from

IotaHTTPTransportError.stack


status

status: number


statusText

statusText: string

Methods

captureStackTrace()

static captureStackTrace(targetObject, constructorOpt?): void

Create .stack property on a target object

Parameters

targetObject: object

constructorOpt?: Function

Returns

void

Inherited from

IotaHTTPTransportError.captureStackTrace