# 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](https://github.com/B3Pay/ic-reactor/blob/6b3b9f58b7868082175216ca6e3688d278d17c1f/packages/core/src/errors.ts#L145)

Whether `error` is a [ReactorError](https://ic-reactor.b3pay.net/v4/libs/type-aliases/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

### error

`unknown`

## 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...)