Raised when a statement produces an SQL warning.

Methods

Attributes

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

Class Public methods

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

📝 Source code
# 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
🔎 See on GitHub