EffectError class
Goes through `app.report`, which wraps it as `REPORTED` with this as `cause`.
import { EffectError } from '@dioramajs/diorama/effects'instanceof EffectError checks the name, so it also holds for definition errors thrown by @dioramajs/effects/effect, which cannot import this class, and across two copies.
class EffectErrorMembers
| Name | Type | Description |
|---|---|---|
constructor | | |
cause? | unknown | |
readonly code | EffectErrorCode | |
readonly effect | string | undefined | |
readonly element | Element | undefined | |
message | string | |
readonly name | 'EffectError' | Default |
stack? | string | |
stackTraceLimit | number | The The default value is If set to a non-number value, or set to a negative number, stack traces will not capture any frames. |
[hasInstance] | | |
captureStackTrace | | Creates a The first line of the trace will be prefixed with The optional The |
prepareStackTrace | |
Also exported from @dioramajs/effects.
Defined in packages/effects/src/errors.ts.