Exception: ActiveRecord::StatementInvalid
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Subclasses:
|
|
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
ActiveRecordError,
StandardError
|
|
Instance Chain:
self,
ActiveRecordError,
StandardError
|
|
Inherits: |
ActiveRecord::ActiveRecordError
|
Defined in: | activerecord/lib/active_record/errors.rb |
Overview
Superclass for all database execution errors.
Wraps the underlying database error as #original_exception.
Class Method Summary
Instance Attribute Summary
- #original_exception readonly
Constructor Details
.new(message, original_exception = nil) ⇒ StatementInvalid
# File 'activerecord/lib/active_record/errors.rb', line 86
def initialize(, original_exception = nil) super( ) @original_exception = original_exception end
Instance Attribute Details
#original_exception (readonly)
[ GitHub ]# File 'activerecord/lib/active_record/errors.rb', line 84
attr_reader :original_exception