Skip to main content

Class: JinCreateError<T, TPASS, TFAIL>

Type parameters

NameType
Textends JinFrame<TPASS, TFAIL> | JinEitherFrame<TPASS, TFAIL>
TPASSTPASS
TFAILTPASS

Hierarchy

  • Error

    JinCreateError

Constructors

constructor

new JinCreateError<T, TPASS, TFAIL>(«destructured»)

Type parameters

NameType
Textends JinFrame<TPASS, TFAIL> | JinEitherFrame<TPASS, TFAIL>
TPASSTPASS
TFAILTPASS

Parameters

NameType
«destructured»Object
› debugOmit<IDebugInfo, "req">
› frameT extends JinFrame<TPASS, TFAIL> ? JinFrame<TPASS, TFAIL> : JinEitherFrame<TPASS, TFAIL>
› messagestring

Overrides

Error.constructor

Defined in

jin-frame/src/frames/JinCreateError.ts:22

Properties

#debug

Private #debug: Omit<IDebugInfo, "req">

Defined in

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


#frame

Private #frame: T extends JinFrame<TPASS, TFAIL> ? JinFrame<TPASS, TFAIL> : JinEitherFrame<TPASS, TFAIL>

Defined in

jin-frame/src/frames/JinCreateError.ts:16


#status

Private #status: undefined | number

Defined in

jin-frame/src/frames/JinCreateError.ts:18


#statusText

Private #statusText: string

Defined in

jin-frame/src/frames/JinCreateError.ts:20


__discriminator

__discriminator: string = 'JinCreateError'

Defined in

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


message

message: string

Inherited from

Error.message

Defined in

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


name

name: string

Inherited from

Error.name

Defined in

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


stack

Optional stack: string

Inherited from

Error.stack

Defined in

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(): Omit<IDebugInfo, "req">

Returns

Omit<IDebugInfo, "req">

Defined in

jin-frame/src/frames/JinCreateError.ts:39


frame

get frame(): T extends JinFrame<TPASS, TFAIL> ? JinFrame<TPASS, TFAIL> : JinEitherFrame<TPASS, TFAIL>

Returns

T extends JinFrame<TPASS, TFAIL> ? JinFrame<TPASS, TFAIL> : JinEitherFrame<TPASS, TFAIL>

Defined in

jin-frame/src/frames/JinCreateError.ts:43


status

get status(): undefined | number

Returns

undefined | number

Defined in

jin-frame/src/frames/JinCreateError.ts:47


statusText

get statusText(): string

Returns

string

Defined in

jin-frame/src/frames/JinCreateError.ts:51

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