Skip to main content

Class: JinFrameError<TPASS, TFAIL>

Type parameters

NameType
TPASSTPASS
TFAILany

Hierarchy

  • Error

    JinFrameError

Constructors

constructor

new JinFrameError<TPASS, TFAIL>(«destructured»)

Type parameters

NameType
TPASSTPASS
TFAILany

Parameters

NameType
«destructured»Object
› debugIDebugInfo
› frameJinFrame<TPASS, TFAIL>
› messagestring
› resp?AxiosResponse<TFAIL, any>

Overrides

Error.constructor

Defined in

jin-frame/src/frames/JinFrameError.ts:14

Properties

#debug

Private #debug: IDebugInfo

Defined in

jin-frame/src/frames/JinFrameError.ts:8


#frame

Private #frame: JinFrame<TPASS, TFAIL>

Defined in

jin-frame/src/frames/JinFrameError.ts:10


#resp

Private Optional #resp: AxiosResponse<TFAIL, any>

Defined in

jin-frame/src/frames/JinFrameError.ts:12


__discriminator

__discriminator: string = 'JinFrameError'

Defined in

jin-frame/src/frames/JinFrameError.ts:6


message

message: string

Inherited from

Error.message

Defined in

docs/jin-frame-docs/node_modules/typescript/lib/lib.es5.d.ts:1054


name

name: string

Inherited from

Error.name

Defined in

docs/jin-frame-docs/node_modules/typescript/lib/lib.es5.d.ts:1053


stack

Optional stack: string

Inherited from

Error.stack

Defined in

docs/jin-frame-docs/node_modules/typescript/lib/lib.es5.d.ts:1055


prepareStackTrace

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

Type declaration

▸ (err, stackTraces): any

Optional override for formatting stack traces

See

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

Parameters
NameType
errError
stackTracesCallSite[]
Returns

any

Inherited from

Error.prepareStackTrace

Defined in

jin-frame/node_modules/@types/node/globals.d.ts:11


stackTraceLimit

Static stackTraceLimit: number

Inherited from

Error.stackTraceLimit

Defined in

jin-frame/node_modules/@types/node/globals.d.ts:13

Accessors

debug

get debug(): IDebugInfo

Returns

IDebugInfo

Defined in

jin-frame/src/frames/JinFrameError.ts:32


frame

get frame(): JinFrame<TPASS, TFAIL>

Returns

JinFrame<TPASS, TFAIL>

Defined in

jin-frame/src/frames/JinFrameError.ts:36


resp

get resp(): undefined | AxiosResponse<any, any>

Returns

undefined | AxiosResponse<any, any>

Defined in

jin-frame/src/frames/JinFrameError.ts:40

Methods

captureStackTrace

Static captureStackTrace(targetObject, constructorOpt?): void

Create .stack property on a target object

Parameters

NameType
targetObjectobject
constructorOpt?Function

Returns

void

Inherited from

Error.captureStackTrace

Defined in

jin-frame/node_modules/@types/node/globals.d.ts:4