Add new error class `QueryCanceled` which will be raised when canceling statement due to user request
#31235

kamipo wants to merge kamipo:add_query_canceled_exception into rails:master

We do not currently have an analysis of these two commits