instance method
translate_exception
Ruby on Rails 5.2.8.1
Since v3.0.20 PrivateSignature
translate_exception(exception, message)
No documentation comment.
Parameters
-
exceptionreq -
messagereq
Source
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 589
def translate_exception(exception, message)
# override in derived class
case exception
when RuntimeError
exception
else
ActiveRecord::StatementInvalid.new(message)
end
end
Defined in activerecord/lib/active_record/connection_adapters/abstract_adapter.rb line 589
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::AbstractAdapter