Class: QueryError
fetch/src.QueryError
Hierarchy
Error
↳
QueryError
Constructors
constructor
• new QueryError(url
, code
, response
, body
)
Parameters
Name | Type |
---|---|
url | string |
code | number |
response | Response |
body | string |
Overrides
Error.constructor
Defined in
projects/utilities/packages/fetch/src/lib/QueryError.ts:19
Properties
#json
• Private
#json: unknown
Defined in
projects/utilities/packages/fetch/src/lib/QueryError.ts:17
body
• Readonly
body: string
Defined in
projects/utilities/packages/fetch/src/lib/QueryError.ts:13
cause
• Optional
cause: unknown
Inherited from
Error.cause
Defined in
node_modules/typescript/lib/lib.es2022.error.d.ts:26
code
• Readonly
code: number
Defined in
projects/utilities/packages/fetch/src/lib/QueryError.ts:11
message
• message: string
Inherited from
Error.message
Defined in
node_modules/typescript/lib/lib.es5.d.ts:1054
name
• name: string
Inherited from
Error.name
Defined in
node_modules/typescript/lib/lib.es5.d.ts:1053
response
• Readonly
response: Response
Defined in
projects/utilities/packages/fetch/src/lib/QueryError.ts:15
stack
• Optional
stack: string
Inherited from
Error.stack
Defined in
node_modules/typescript/lib/lib.es5.d.ts:1055
url
• Readonly
url: string
Defined in
projects/utilities/packages/fetch/src/lib/QueryError.ts:9
prepareStackTrace
▪ Static
Optional
prepareStackTrace: (err
: Error
, stackTraces
: CallSite
[]) => any
Type declaration
▸ (err
, stackTraces
): any
Parameters
Name | Type |
---|---|
err | Error |
stackTraces | CallSite [] |
Returns
any
Inherited from
Error.prepareStackTrace
Defined in
node_modules/@types/node/globals.d.ts:11
stackTraceLimit
▪ Static
stackTraceLimit: number
Inherited from
Error.stackTraceLimit
Defined in
node_modules/@types/node/globals.d.ts:13
Methods
toJSON
▸ toJSON(): any
Returns
any
Defined in
projects/utilities/packages/fetch/src/lib/QueryError.ts:28
captureStackTrace
▸ Static
captureStackTrace(targetObject
, constructorOpt?
): void
Parameters
Name | Type |
---|---|
targetObject | object |
constructorOpt? | Function |
Returns
void
Inherited from
Error.captureStackTrace
Defined in
node_modules/@types/node/globals.d.ts:4