Skip to Content Skip to Search

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 159
def initialize(message = nil, sql: nil, binds: nil)
  super(message || $!&.message)
  @sql = sql
  @binds = binds
end