当语句产生 SQL 警告时引发。
方法
- N
属性
[R] | code | |
[R] | level | |
[RW] | sql |
类公共方法
new(message = nil, code = nil, level = nil, sql = nil, connection_pool = nil) 链接
源代码: 显示 | 在 GitHub 上
# 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