class

PgORM::Error::ConnectError

Inherits PgORM::Error < Exception < Reference < Object

Raised when the database connection cannot be established.

Example

PgORM::Database.configure do |settings|
  settings.host = "nonexistent.example.com"
end
User.all.to_a # Raises ConnectError