123456789_123456789_123456789_123456789_123456789_

Exception: ActiveRecord::SQLWarning

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, AdapterError, ActiveRecordError, StandardError
Instance Chain:
self, AdapterError, ActiveRecordError, StandardError
Inherits: ActiveRecord::AdapterError
Defined in: activerecord/lib/active_record/errors.rb

Overview

Raised when a statement produces an SQL warning.

Class Method Summary

Instance Attribute Summary

AdapterError - Inherited

Constructor Details

.new(message = nil, code = nil, level = nil, sql = nil, connection_pool = nil) ⇒ SQLWarning

[ 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

Instance Attribute Details

#code (readonly)

[ GitHub ]

  
# File 'activerecord/lib/active_record/errors.rb', line 285

attr_reader :code, :level

#level (readonly)

[ GitHub ]

  
# File 'activerecord/lib/active_record/errors.rb', line 285

attr_reader :code, :level

#sql (rw)

[ GitHub ]

  
# File 'activerecord/lib/active_record/errors.rb', line 286

attr_accessor :sql