method

translate_exception

translate_exception(exception, message)
private

No documentation available.

# 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