Class: JinRequestError<TPASS, TFAIL>
Type parameters
Name | Type |
---|---|
TPASS | TPASS |
TFAIL | any |
Hierarchy
Error
↳
JinRequestError
Constructors
constructor
• new JinRequestError<TPASS
, TFAIL
>(«destructured»
)
Type parameters
Name | Type |
---|---|
TPASS | TPASS |
TFAIL | any |
Parameters
Name | Type |
---|---|
«destructured» | Object |
› debug | IDebugInfo |
› frame | JinFrame <TPASS , TFAIL > |
› message | string |
› resp | AxiosResponse <TFAIL , any > |
Overrides
Error.constructor
Defined in
jin-frame/src/frames/JinRequestError.ts:18
Properties
#debug
• Private
#debug: IDebugInfo
Defined in
jin-frame/src/frames/JinRequestError.ts:8
#frame
• Private
#frame: JinFrame
<TPASS
, TFAIL
>
Defined in
jin-frame/src/frames/JinRequestError.ts:10
#resp
• Private
#resp: AxiosResponse
<TFAIL
, any
>
Defined in
jin-frame/src/frames/JinRequestError.ts:12
#status
• Private
#status: undefined
| number
Defined in
jin-frame/src/frames/JinRequestError.ts:14
#statusText
• Private
#statusText: string
Defined in
jin-frame/src/frames/JinRequestError.ts:16
__discriminator
• __discriminator: string
= 'JinRequestError'
Defined in
jin-frame/src/frames/JinRequestError.ts:6
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
Name | Type |
---|---|
err | Error |
stackTraces | CallSite [] |
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
Defined in
jin-frame/src/frames/JinRequestError.ts:38
frame
• get
frame(): JinFrame
<TPASS
, TFAIL
>
Returns
JinFrame
<TPASS
, TFAIL
>
Defined in
jin-frame/src/frames/JinRequestError.ts:42
resp
• get
resp(): undefined
| AxiosResponse
<any
, any
>
Returns
undefined
| AxiosResponse
<any
, any
>
Defined in
jin-frame/src/frames/JinRequestError.ts:46
status
• get
status(): undefined
| number
Returns
undefined
| number
Defined in
jin-frame/src/frames/JinRequestError.ts:50
statusText
• get
statusText(): string
Returns
string
Defined in
jin-frame/src/frames/JinRequestError.ts:54
Methods
captureStackTrace
▸ Static
captureStackTrace(targetObject
, constructorOpt?
): void
Create .stack property on a target object
Parameters
Name | Type |
---|---|
targetObject | object |
constructorOpt? | Function |
Returns
void
Inherited from
Error.captureStackTrace
Defined in
jin-frame/node_modules/@types/node/globals.d.ts:4