當陳述式產生 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 288 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