RpcError
Defined in: packages/iso-filecoin/src/rpc.js:41
Extends
Extended by
Constructors
Constructor
new RpcError(message: string, options?: ErrorOptions): RpcError;
Defined in: packages/iso-filecoin/src/rpc.js:55
Parameters
Parameter | Type |
---|---|
message | string |
options ? | ErrorOptions |
Returns
RpcError
Overrides
Error.constructor
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
Error.captureStackTrace
is()
static is(value: unknown): value is RpcError;
Defined in: packages/iso-filecoin/src/rpc.js:66
Check if a value is a RequestError
Parameters
Parameter | Type |
---|---|
value | unknown |
Returns
value is RpcError
Properties
[symbol]
[symbol]: boolean = true;
Defined in: packages/iso-filecoin/src/rpc.js:43
cause
cause: unknown;
Defined in: packages/iso-filecoin/src/rpc.js:48
Overrides
Error.cause
message
message: string;
Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1077
Inherited from
Error.message
name
name: string = 'RpcError';
Defined in: packages/iso-filecoin/src/rpc.js:45
Overrides
Error.name
stack?
optional stack: string;
Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1078
Inherited from
Error.stack
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
Error.prepareStackTrace
stackTraceLimit
static stackTraceLimit: number;
Defined in: node_modules/.pnpm/@[email protected]/node_modules/@types/node/globals.d.ts:145
Inherited from
Error.stackTraceLimit