W3cubDocs

/Ruby on Rails 4.1

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
Calls superclass method
# File activerecord/lib/active_record/errors.rb, line 66
def initialize(message, original_exception = nil)
  super(message)
  @original_exception = original_exception
end

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