Ruby on Rails 5.2.3
Class
ActiveRecord::QueryCanceled
<
ActiveRecord::StatementInvalid
activerecord/lib/active_record/errors.rb
QueryCanceled
will be raised when canceling statement due to user request.