edge badge

Superclass for all database execution errors.

Wraps the underlying database error as cause.

Methods
N
Attributes
[R] binds
[R] sql
Class Public methods
new(message = nil, sql: nil, binds: nil)
# File activerecord/lib/active_record/errors.rb, line 104
def initialize(message = nil, sql: nil, binds: nil)
  super(message || $!.try(:message))
  @sql = sql
  @binds = binds
end