Ruby on Rails 5.2.3
Class
ActiveRecord::StatementTimeout
<
ActiveRecord::StatementInvalid
activerecord/lib/active_record/errors.rb
StatementTimeout
will be raised when statement timeout exceeded.