Raised when connection to the database could not been established (for example when ActiveRecord::Base.lease_connection= is given a nil object).

Methods

Class Public methods

new(message = nil, connection_pool: nil)

📝 Source code
# File activerecord/lib/active_record/errors.rb, line 67
def initialize(message = nil, connection_pool: nil)
  super(message, connection_pool: connection_pool)
end
🔎 See on GitHub

Instance Public methods

set_pool(connection_pool)

📝 Source code
# File activerecord/lib/active_record/errors.rb, line 71
def set_pool(connection_pool)
  unless @connection_pool
    @connection_pool = connection_pool
  end

  self
end
🔎 See on GitHub