Superclass for all database execution errors.
Wraps the underlying database error as cause
.
# 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
© 2004–2021 David Heinemeier Hansson
Licensed under the MIT License.