# `DalaDev.Error`
[🔗](https://github.com/manhvu/dala_dev/blob/main/lib/dala_dev/error.ex#L1)

Standardized error handling for the dala_dev codebase.

Provides consistent error types and helper functions to ensure
uniform error reporting across all modules.

# `t`

```elixir
@type t() :: {:error, reason :: term()} | {:error, module :: atom(), reason :: term()}
```

# `format`

```elixir
@spec format({:error, term()}) :: String.t()
```

Formats an error for user-friendly display.

# `new`

```elixir
@spec new(term()) :: {:error, term()}
```

Creates a standardized error tuple with optional module context.

# `new`

```elixir
@spec new(atom(), term()) :: {:error, atom(), term()}
```

# `wrap`

```elixir
@spec wrap(term(), (-&gt; {:ok, term()} | {:error, term()})) ::
  {:ok, term()} | {:error, term()}
```

Wraps a function call with standardized error handling.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
