# `Finch.TransportError`
[🔗](https://github.com/sneako/finch/blob/v0.25.0/lib/finch/transport_error.ex#L1)

Represents transport errors returned by Finch.

`:phase` is `:connect` when an HTTP/1 connection failed to open (DNS,
TCP, or TLS), so no part of the request was sent and it is safe to retry
for any method. It is `nil` otherwise, including a timeout or a closed
socket after the request was sent.

# `reason`

```elixir
@type reason() :: Mint.TransportError.reason()
```

# `t`

```elixir
@type t() :: %Finch.TransportError{
  __exception__: term(),
  phase: :connect | nil,
  reason: reason(),
  source: Mint.TransportError.t() | nil
}
```

---

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