class ActiveRecord::StatementInvalid

Parent:
ActiveRecord::ActiveRecordError

Superclass for all database execution errors.

Wraps the underlying database error as original_exception.

Attributes

original_exception[R]

Public Class Methods

new(message, original_exception = nil) Show source
# File activerecord/lib/active_record/errors.rb, line 86
def initialize(message, original_exception = nil)
  super(message)
  @original_exception = original_exception
end
Calls superclass method

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