Effect.catchAll for global error handling
Use `Effect.catchAllCause` to handle any error, including defects. The handler receives the full `Cause`. You can log, convert to a fallback, or rethrow.
- Use `Effect.catchAllCause(handler)` to catch any error and get the Cause
- Handler receives the full Cause
- Use `Cause.pretty(cause)` for readable error output
Loading code editor...