Ruby on Rails 5.1.4
Class
ActiveRecord::WrappedDatabaseException
<
ActiveRecord::StatementInvalid
activerecord/lib/active_record/errors.rb
Defunct wrapper class kept for compatibility.
StatementInvalid
wraps the original exception now.