Class: ApiError

@torque-labs/torque-utilsDocs


@torque-labs/torque-utils / ApiError

Class: ApiError

Extends

  • Error

Constructors

new ApiError()

new ApiError(__namedParameters): ApiError

Parameters

ParameterType

__namedParameters

object

__namedParameters.cause?

any

__namedParameters.data?

any

__namedParameters.message

string

__namedParameters.name

Returns

ApiError

Overrides

Error.constructor

Defined in

types/errors.ts:24

Properties

PropertyTypeDescriptionOverridesInherited from

cause

any

-

Error.cause

-

code

number

-

-

-

data

any

-

-

-

message

string

-

Error.message

-

name

-

Error.name

-

stack?

string

-

-

Error.stack

prepareStackTrace?

(err: Error, stackTraces: CallSite[]) => any

Optional override for formatting stack traces See https://v8.dev/docs/stack-trace-api#customizing-stack-traces

-

Error.prepareStackTrace

stackTraceLimit

number

-

-

Error.stackTraceLimit

Methods

captureStackTrace()

static captureStackTrace(targetObject, constructorOpt?): void

Create .stack property on a target object

Parameters

ParameterType

targetObject

object

constructorOpt?

Function

Returns

void

Inherited from

Error.captureStackTrace

Defined in

node_modules/@types/node/globals.d.ts:91

Last updated