class ActiveRecord::StatementInvalid - activerecord-4.2.3 Documentation

# class ActiveRecord::StatementInvalid

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) click to toggle source
Calls superclass method

    # File lib/active_record/errors.rb, line 86
    def initialize(message, original_exception = nil)
      super(message)
      @original_exception = original_exception
    end