class method
self.default_exception_handler
Ruby on Rails 2.3.18
Since v2.2.3 Last seen in v2.3.18 PrivateAvailable in: v2.2.3 v2.3.18
Signature
self.default_exception_handler(exception, locale, key, options)
Handles exceptions raised in the backend. All exceptions except for MissingTranslationData exceptions are re-raised. When a MissingTranslationData was caught and the option :raise is not set the handler returns an error message string containing the key/scope.
Parameters
-
exceptionreq -
localereq -
keyreq -
optionsreq
Source
# File activesupport/lib/active_support/vendor/i18n-0.4.1/i18n.rb, line 268
def default_exception_handler(exception, locale, key, options)
return exception.message if MissingTranslationData === exception
raise exception
end
Defined in activesupport/lib/active_support/vendor/i18n-0.4.1/i18n.rb line 268
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in I18n