class ActiveRecord::ConnectionNotDefined

Parent:
ActiveRecord::ConnectionNotEstablished

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

Attributes

connection_name[R]
role[R]
shard[R]

Public Class Methods

new(message = nil, connection_name: nil, role: nil, shard: nil) Show source
# 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

© 2004–2021 David Heinemeier Hansson
Licensed under the MIT License.