# `Milvex.Errors.Connection`

Errors related to connection establishment, network issues, or disconnections.

Used when:
- Unable to establish gRPC connection
- Connection timeout
- Network unreachable
- Connection lost during operation

# `t`

```elixir
@type t() :: %Milvex.Errors.Connection{
  __exception__: true,
  bread_crumbs: term(),
  class: term(),
  host: String.t() | nil,
  path: term(),
  port: integer() | nil,
  reason: String.t() | atom(),
  retriable: boolean() | nil,
  splode: term(),
  stacktrace: term(),
  vars: term()
}
```

# `exception`

```elixir
@spec exception(opts :: Keyword.t()) :: %Milvex.Errors.Connection{
  __exception__: true,
  bread_crumbs: term(),
  class: term(),
  host: term(),
  path: term(),
  port: term(),
  reason: term(),
  retriable: term(),
  splode: term(),
  stacktrace: term(),
  vars: term()
}
```

Create an `Elixir.Milvex.Errors.Connection` without raising it.

## Keys

- :reason
- :host
- :port
- :retriable

---

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