# `TwitterViewer.Error`
[🔗](https://github.com/TwitterViewer/twitterviewer-elixir/blob/v0.1.0/lib/twitterviewer/error.ex#L86)

The errors a call can return as `{:error, error}`: `TwitterViewer.APIError`,
`TwitterViewer.ConnectionError`, `TwitterViewer.TimeoutError` and
`TwitterViewer.UnexpectedResponseError`. All are exceptions, so `raise error` works.

Values that can never work (a bad option, a malformed handle) raise `ArgumentError`
instead, and nothing is sent.

# `t`

```elixir
@type t() ::
  TwitterViewer.APIError.t()
  | TwitterViewer.ConnectionError.t()
  | TwitterViewer.TimeoutError.t()
  | TwitterViewer.UnexpectedResponseError.t()
```

# `connection?`

```elixir
@spec connection?(t()) :: boolean()
```

True when no response was received: a `ConnectionError` or a `TimeoutError`.

---

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