跳至内容 跳至搜索

当语句产生 SQL 警告时引发。

方法
N

属性

[R] code
[R] level
[RW] sql

类公共方法

new(message = nil, code = nil, level = nil, sql = nil, connection_pool = nil)

# File activerecord/lib/active_record/errors.rb, line 309
def initialize(message = nil, code = nil, level = nil, sql = nil, connection_pool = nil)
  super(message, connection_pool: connection_pool)
  @code = code
  @level = level
  @sql = sql
end