Superclass for all database execution errors.
Wraps the underlying database error as cause
.
Methods
Class Public methods
new(message = nil, original_exception = nil)
Link
# File activerecord/lib/active_record/errors.rb, line 100 def initialize(message = nil, original_exception = nil) if original_exception ActiveSupport::Deprecation.warn("Passing #original_exception is deprecated and has no effect. " "Exceptions will automatically capture the original exception.", caller) end super(message || $!.try(:message)) end
Instance Public methods