Exception: ActiveRecord::StatementInvalid

Inherits:
ActiveRecordError show all
Defined in:
activerecord/lib/active_record/errors.rb

Overview

Superclass for all database execution errors.

Wraps the underlying database error as cause.

Instance Method Summary collapse

Constructor Details

#initialize(message = nil) ⇒ StatementInvalid



100
101
102
# File 'activerecord/lib/active_record/errors.rb', line 100

def initialize(message = nil)
  super(message || $!.try(:message))
end