HttpError
Defined in: node_modules/.pnpm/[email protected]/node_modules/iso-web/dist/src/http.d.ts:242
Extends
Constructors
Constructor
new HttpError(options: ErrorOptions & { options: RequestOptions; request: Request; response: Response;}): HttpError;
Defined in: node_modules/.pnpm/[email protected]/node_modules/iso-web/dist/src/http.d.ts:254
Parameters
Parameter | Type |
---|---|
options | ErrorOptions & { options : RequestOptions ; request : Request ; response : Response ; } |
Returns
HttpError
Overrides
Methods
captureStackTrace()
static captureStackTrace(targetObject: object, constructorOpt?: Function): void;
Defined in: node_modules/.pnpm/@[email protected]/node_modules/@types/node/globals.d.ts:136
Create .stack property on a target object
Parameters
Parameter | Type |
---|---|
targetObject | object |
constructorOpt ? | Function |
Returns
void
Inherited from
RequestError
.captureStackTrace
is()
static is(value: unknown): value is HttpError;
Defined in: node_modules/.pnpm/[email protected]/node_modules/iso-web/dist/src/http.d.ts:249
Check if a value is a HttpError
Parameters
Parameter | Type |
---|---|
value | unknown |
Returns
value is HttpError
Overrides
Properties
[symbol]
[symbol]: boolean;
Defined in: node_modules/.pnpm/[email protected]/node_modules/iso-web/dist/src/http.d.ts:187
Inherited from
cause
cause: unknown;
Defined in: node_modules/.pnpm/[email protected]/node_modules/iso-web/dist/src/http.d.ts:185
Inherited from
code
code: number;
Defined in: node_modules/.pnpm/[email protected]/node_modules/iso-web/dist/src/http.d.ts:260
message
message: string;
Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1077
Inherited from
name
name: string;
Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1076
Inherited from
options
options: RequestOptions;
Defined in: node_modules/.pnpm/[email protected]/node_modules/iso-web/dist/src/http.d.ts:266
request
request: Request;
Defined in: node_modules/.pnpm/[email protected]/node_modules/iso-web/dist/src/http.d.ts:264
response
response: Response;
Defined in: node_modules/.pnpm/[email protected]/node_modules/iso-web/dist/src/http.d.ts:262
stack?
optional stack: string;
Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1078
Inherited from
prepareStackTrace()?
static optional prepareStackTrace: (err: Error, stackTraces: CallSite[]) => any;
Defined in: node_modules/.pnpm/@[email protected]/node_modules/@types/node/globals.d.ts:143
Optional override for formatting stack traces
Parameters
Parameter | Type |
---|---|
err | Error |
stackTraces | CallSite [] |
Returns
any
See
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Inherited from
RequestError
.prepareStackTrace
stackTraceLimit
static stackTraceLimit: number;
Defined in: node_modules/.pnpm/@[email protected]/node_modules/@types/node/globals.d.ts:145