Squirrelix.Error.CannotConnectToPostgres (Squirrelix v0.5.1)

Copy Markdown View Source

Error returned when Squirrelix cannot connect to Postgres for inference.

Covers TCP failures (refused, unreachable, closed) and authorization / catalog problems. Connection timeouts use Squirrelix.Error.PostgresConnectionTimeout.

Summary

Types

reason()

@type reason() ::
  :refused
  | :unreachable
  | :closed
  | :nxdomain
  | :invalid_authorization
  | :invalid_password
  | :invalid_catalog
  | :unknown

t()

@type t() :: %Squirrelix.Error.CannotConnectToPostgres{
  database: String.t() | nil,
  detail: term() | nil,
  host: String.t(),
  message: String.t() | nil,
  port: non_neg_integer(),
  reason: reason(),
  user: String.t() | nil
}