class ActiveRecord::StatementInvalid
Superclass for all database execution errors.
Wraps the underlying database error as cause
.
Attributes
binds[R]
sql[R]
Public Class Methods
# File activerecord/lib/active_record/errors.rb, line 125 def initialize(message = nil, sql: nil, binds: nil) super(message || $!&.message) @sql = sql @binds = binds end
Calls superclass method
© 2004–2020 David Heinemeier Hansson
Licensed under the MIT License.