Class: ApiError
Extends
Error
Constructors
new ApiError()
new ApiError(
response):ApiError
Parameters
• response: Omit<ApiResponse<any>, "ok">
Returns
Overrides
Error.constructor
Source
@tableland/sdk/src/validator/client/types.ts:164
Properties
cause?
optionalcause:unknown
Inherited from
Error.cause
Source
typescript/lib/lib.es2022.error.d.ts:24
data
readonlydata:any
Source
@tableland/sdk/src/validator/client/types.ts:162
headers
readonlyheaders:Headers
Source
@tableland/sdk/src/validator/client/types.ts:158
message
message:
string
Inherited from
Error.message
Source
typescript/lib/lib.es5.d.ts:1068
name
name:
string
Inherited from
Error.name
Source
typescript/lib/lib.es5.d.ts:1067
stack?
optionalstack:string
Inherited from
Error.stack
Source
typescript/lib/lib.es5.d.ts:1069
status
readonlystatus:number
Source
@tableland/sdk/src/validator/client/types.ts:160
statusText
readonlystatusText:string
Source
@tableland/sdk/src/validator/client/types.ts:161
url
readonlyurl:string
Source
@tableland/sdk/src/validator/client/types.ts:159
prepareStackTrace()?
staticoptionalprepareStackTrace: (err,stackTraces) =>any
Optional override for formatting stack traces
See
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Parameters
• err: Error
• stackTraces: CallSite[]
Returns
any
Inherited from
Error.prepareStackTrace
Source
@types/node/globals.d.ts:28
stackTraceLimit
staticstackTraceLimit:number
Inherited from
Error.stackTraceLimit
Source
@types/node/globals.d.ts:30
Methods
captureStackTrace()
staticcaptureStackTrace(targetObject,constructorOpt?):void
Create .stack property on a target object
Parameters
• targetObject: object
• constructorOpt?: Function
Returns
void
Inherited from
Error.captureStackTrace
Source
@types/node/globals.d.ts:21