class method self.default_exception_handler

Ruby on Rails 2.3.18

Since v2.2.3 Last seen in v2.3.18 Private

Available 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

exception req
locale req
key req
options req
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

Type at least 2 characters to search.

↑↓ navigate · open · esc close