Exception: ActiveRecord::StatementInvalid
- Inherits:
-
ActiveRecordError
- Object
- StandardError
- ActiveRecordError
- ActiveRecord::StatementInvalid
- Defined in:
- lib/active_record/errors.rb
Overview
Superclass for all database execution errors.
Wraps the underlying database error as cause.
Direct Known Subclasses
LockWaitTimeout, MismatchedForeignKey, NoDatabaseError, NotNullViolation, PreparedStatementCacheExpired, QueryCanceled, RangeError, StatementTimeout, TransactionRollbackError, ValueTooLong, WrappedDatabaseException
Instance Method Summary collapse
-
#initialize(message = nil) ⇒ StatementInvalid
constructor
A new instance of StatementInvalid.
Constructor Details
#initialize(message = nil) ⇒ StatementInvalid
Returns a new instance of StatementInvalid.
100 101 102 |
# File 'lib/active_record/errors.rb', line 100 def initialize( = nil) super( || $!.try(:message)) end |