DBConnection.ConnectionError exception (db_connection v2.8.0)

View Source

A generic connection error exception.

The raised exception might include the reason which would be useful to programmatically determine what was causing the error.

Summary

Types

t()

(since 2.7.0)
@type t() :: %DBConnection.ConnectionError{
  __exception__: true,
  message: String.t(),
  reason: :error | :queue_timeout,
  severity: Logger.level()
}