View Source DBConnection.ConnectionError exception (db_connection v2.7.0)

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

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