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.



56
57
58
59
# File 'lib/active_record/errors.rb', line 56

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.



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

def connection_pool
  @connection_pool
end