class PgORM::Error::ConnectError

Overview

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

Defined in:

pg-orm/errors.cr

Instance methods inherited from class PgORM::Error

message : String? message

Constructor methods inherited from class PgORM::Error

new(message : String | Nil = "") new