123456789_123456789_123456789_123456789_123456789_

Exception: ActiveRecord::ConnectionNotDefined

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Instance Chain:
Inherits: ActiveRecord::ConnectionNotEstablished
Defined in: activerecord/lib/active_record/errors.rb

Overview

Raised when a database connection pool is requested but has not been defined.

Class Method Summary

Instance Attribute Summary

AdapterError - Inherited

Instance Method Summary

Constructor Details

.new(message = nil, connection_name: nil, role: nil, shard: nil) ⇒ ConnectionNotDefined

[ GitHub ]

  
# File 'activerecord/lib/active_record/errors.rb', line 90

def initialize(message = nil, connection_name: nil, role: nil, shard: nil)
  super(message)
  @connection_name = connection_name
  @role = role
  @shard = shard
end

Instance Attribute Details

#connection_name (readonly)

[ GitHub ]

  
# File 'activerecord/lib/active_record/errors.rb', line 97

attr_reader :connection_name, :role, :shard

#role (readonly)

[ GitHub ]

  
# File 'activerecord/lib/active_record/errors.rb', line 97

attr_reader :connection_name, :role, :shard

#shard (readonly)

[ GitHub ]

  
# File 'activerecord/lib/active_record/errors.rb', line 97

attr_reader :connection_name, :role, :shard