ApiError
ODP Node SDKODP Node SDK / ZaiusZaius / ApiError
ApiError
Hierarchy
- `HttpError`HttpError.ApiError
Index
Constructors
- constructorconstructor
Properties
- codecode
- messagemessage
- namename
- responseresponse
- stackstack
- prepareStackTraceprepareStackTrace
- stackTraceLimitstackTraceLimit
Methods
- captureStackTracecaptureStackTrace
Constructors
constructor()
Signature
new ApiError(source: HttpError): ApiError;Parameters
Name | Type |
|---|---|
source | `HttpError`HttpError |
Returns
`ApiError`ApiError
Overrides: HttpErrorHttpError.constructorconstructor
Defined in: src/Api/lib/ApiError.ts:4
Properties
code?
Defined in: src/Api/lib/ApiV3.ts:95
message
Defined in: node_modules/typescript/lib/lib.es5.d.ts:1041
name
Defined in: node_modules/typescript/lib/lib.es5.d.ts:1040
response?
`HttpResponse`HttpResponse<`V3ErrorResponse`V3ErrorResponse>
Defined in: src/Api/lib/ApiV3.ts:95
stack?
Defined in: node_modules/typescript/lib/lib.es5.d.ts:1042
prepareStackTrace?
Type declaration
Optional override for formatting stack traces
See
Signature
(err: Error, stackTraces: CallSite[]): any;Parameters
Name | Type |
|---|---|
err | Error |
stackTraces | CallSite[] |
Returns
any
Inherited from: HttpErrorHttpError.prepareStackTraceprepareStackTrace
Defined in: node_modules/@types/node/globals.d.ts:11
stackTraceLimit
Inherited from: HttpErrorHttpError.stackTraceLimitstackTraceLimit
Defined in: node_modules/@types/node/globals.d.ts:13
Methods
captureStackTrace()
Create .stack property on a target object
Signature
Static captureStackTrace(targetObject: object, constructorOpt?: Function): void;Parameters
Name | Type |
|---|---|
targetObject | object |
constructorOpt? | Function |
Returns
void
Inherited from: HttpErrorHttpError.captureStackTracecaptureStackTrace
Defined in: node_modules/@types/node/globals.d.ts:4