Skip to Content Skip to Search

class ActiveRecord::SQLWarning

Raised when a statement produces an SQL warning.

Inherits From


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

Public class methods

Source code GitHub
# File activerecord/lib/active_record/errors.rb, line 280
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

Definition files