Exception: ActiveRecord::AdapterError

Inherits:
ActiveRecordError show all
Defined in:
lib/active_record/errors.rb

Overview

Superclass for all errors raised from an Active Record adapter.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, connection_pool: nil) ⇒ AdapterError

Returns a new instance of AdapterError.



60
61
62
63
# File 'lib/active_record/errors.rb', line 60

def initialize(message = nil, connection_pool: nil)
  @connection_pool = connection_pool
  super(message)
end

Instance Attribute Details

#connection_poolObject (readonly)

Returns the value of attribute connection_pool.



65
66
67
# File 'lib/active_record/errors.rb', line 65

def connection_pool
  @connection_pool
end