Run this notebook

Use Livebook to open this notebook and explore new ideas.

It is easy to get started, on your machine or the cloud.

Click below to open and run it in your Livebook at .

(or change your Livebook location)

# Funx.Errors.EffectError ```elixir Mix.install([ {:funx, "0.4.0"} ]) ``` Represents a system-level failure in an effectful computation. `EffectError` is raised or returned when a failure occurs during the execution of an `Effect` stage, such as `map`, `bind`, or `ap`. It is not meant for user-facing validation, but rather for internal tracing, telemetry, and diagnostics. ## Fields * `stage` – the name of the effect stage where the error occurred (`:map`, `:bind`, `:ap`, etc.) * `reason` – the term (often an exception) that caused the failure This error implements the `Exception`, `String.Chars`, and `Funx.Summarizable` behaviours. ## Function Examples ```elixir import Funx.Errors.EffectError alias Funx.Errors.EffectError ``` ## new/2 Creates a new `EffectError` from the given stage and reason. ### Examples ```elixir new(:bind, %RuntimeError{message: "boom"}) ```
See source

Have you already installed Livebook?

If you already installed Livebook, you can configure the default Livebook location where you want to open notebooks.
Livebook up Checking status We can't reach this Livebook (but we saved your preference anyway)
Run notebook

Not yet? Install Livebook in just a minute

Livebook is open source, free, and ready to run anywhere.

Run on your machine

with Livebook Desktop

Run in the cloud

on select platforms

To run on Linux, Docker, embedded devices, or Elixir’s Mix, check our README.

PLATINUM SPONSORS
SPONSORS
Code navigation with go to definition of modules and functions Read More ×