default
Api Code Documentation / Exports / service/RpcError / default
service/RpcError.default
Error thrown by an [[RpcClientInstance]], if parsing the body of the response failed.
#
HierarchyError
↳
default
#
Table of contents#
Constructors#
Properties#
Methods#
Constructors#
constructor• new default(status
, statusText
, headers
, body
)
Creates an instance of [[RpcError]].
#
ParametersName | Type | Description |
---|---|---|
status | number | Status code of the HTTP response. |
statusText | string | Status text of the HTTP response. |
headers | object | Headers of the HTTP response. |
body | string | Body of the HTTP response. |
#
OverridesError.constructor
#
Defined in#
Properties#
body• Readonly
body: string
#
headers• Readonly
headers: object
#
message• message: string
#
Inherited fromError.message
#
Defined innode_modules/typescript/lib/lib.es5.d.ts:1023
#
name• name: string
#
Inherited fromError.name
#
Defined innode_modules/typescript/lib/lib.es5.d.ts:1022
#
stack• Optional
stack: string
#
Inherited fromError.stack
#
Defined innode_modules/typescript/lib/lib.es5.d.ts:1024
#
status• Readonly
status: number
#
statusText• Readonly
statusText: string
#
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
#
ParametersName | Type |
---|---|
err | Error |
stackTraces | CallSite [] |
#
Returnsany
#
Inherited fromError.prepareStackTrace
#
Defined innode_modules/@types/node/globals.d.ts:11
#
stackTraceLimitâ–ª Static
stackTraceLimit: number
#
Inherited fromError.stackTraceLimit
#
Defined innode_modules/@types/node/globals.d.ts:13
#
Methods#
captureStackTraceâ–¸ Static
captureStackTrace(targetObject
, constructorOpt?
): void
Create .stack property on a target object
#
ParametersName | Type |
---|---|
targetObject | object |
constructorOpt? | Function |
#
Returnsvoid
#
Inherited fromError.captureStackTrace
#
Defined innode_modules/@types/node/globals.d.ts:4