TwitterViewer.Error (TwitterViewer v0.1.0)

Copy Markdown View Source

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.

Summary

Functions

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

Types

Functions

connection?(arg1)

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

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