跳至内容 跳至搜索

当请求数据库连接池但未定义时引发此错误。

方法
N

属性

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

类公共方法

new(message = nil, connection_name: nil, role: nil, shard: nil)

# 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