effect-io-ai

Package: effect
Module: Runtime

Runtime.getErrorReported

Reads the runtime error-reporting marker from an unknown error value.

When to use

Use to read whether an unknown error value should be treated as already reported by the default main runner.

Details

Returns a boolean [Runtime.errorReported] property when it is present on an object. Otherwise returns true, so failures are logged by default.

Gotchas

Non-object values, missing markers, and non-boolean marker values all return true.

See

Signature

declare const getErrorReported: (u: unknown) => boolean

Source

Since v4.0.0