isReactorError
isReactorError(
error): error is Error & ({ readonly name: “ReactorError”; readonly mayHaveExecuted: boolean; readonly method: string; readonly canisterId: string; readonly code?: string | undefined; readonly rejectCode?: number | undefined; readonly httpStatus?: number | undefined; readonly issues?: readonly { …; }[] | undefined; readonly cause?: unknown…)
Defined in: core/src/errors.ts:145
Whether error is a ReactorError, including one created by another
copy of this package. Narrows to ReactorError<unknown>: after a check on
kind === "canister_err", err is unknown.
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”error is Error & ({ readonly name: “ReactorError”; readonly mayHaveExecuted: boolean; readonly method: string; readonly canisterId: string; readonly code?: string | undefined; readonly rejectCode?: number | undefined; readonly httpStatus?: number | undefined; readonly issues?: readonly { …; }[] | undefined; readonly cause?: unknown…)