HttpError
ODP Node SDKODP Node SDK / ZaiusZaius / ApiV3ApiV3 / HttpError
HttpError
Hierarchy
- Error.HttpError
Index
Constructors
- constructorconstructor
Properties
- codecode
- messagemessage
- namename
- responseresponse
- stackstack
- prepareStackTraceprepareStackTrace
- stackTraceLimitstackTraceLimit
Methods
- captureStackTracecaptureStackTrace
Constructors
constructor()
Signature
new HttpError(message: string, code?: string, response?: HttpResponse<V3ErrorResponse>): HttpError;Parameters
Name | Type |
|---|---|
message | string |
code? | string |
response? | `HttpResponse`HttpResponse<`V3ErrorResponse`V3ErrorResponse> |
Returns
`HttpError`HttpError
Overrides: Error.constructor
Defined in: src/Api/lib/ApiV3.ts:95
Properties
code?
Defined in: src/Api/lib/ApiV3.ts:95
message
Inherited from: Error.message
Defined in: node_modules/typescript/lib/lib.es5.d.ts:1041
name
Inherited from: Error.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?
Inherited from: Error.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: Error.prepareStackTrace
Defined in: node_modules/@types/node/globals.d.ts:11
stackTraceLimit
Inherited from: Error.stackTraceLimit
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: Error.captureStackTrace
Defined in: node_modules/@types/node/globals.d.ts:4