class ActiveRecord::StatementInvalid

Parent:
ActiveRecord::ActiveRecordError

Superclass for all database execution errors.

Wraps the underlying database error as cause.

Attributes

binds[R]
sql[R]

Public Class Methods

new(message = nil, sql: nil, binds: nil) Show source
# File activerecord/lib/active_record/errors.rb, line 104
def initialize(message = nil, sql: nil, binds: nil)
  super(message || $!.try(:message))
  @sql = sql
  @binds = binds
end
Calls superclass method

© 2004–2019 David Heinemeier Hansson
Licensed under the MIT License.