Skip to Content Skip to Search
v7.1.0
class ActiveRecord::ConnectionNotEstablished < ActiveRecord::AdapterError

ActiveRecord::ConnectionNotEstablished

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

Methods
N
S

Public class methods

new(message = nil, connection_pool: nil)

Permalink
Source code GitHub
# File activerecord/lib/active_record/errors.rb, line 72
def initialize(message = nil, connection_pool: nil)
  super(message, connection_pool: connection_pool)
end

Public instance methods

set_pool(connection_pool)

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

  self
end
Definition files