Class: Metasploit::Model::Spec::I18nExceptionHandler
- Inherits:
-
I18n::ExceptionHandler
- Object
- I18n::ExceptionHandler
- Metasploit::Model::Spec::I18nExceptionHandler
- Defined in:
- lib/metasploit/model/spec/i18n_exception_handler.rb
Overview
Raises all I18n errors as exceptions so that missing translations (or other errors) with en.yml are caught by the specs.
end
Instance Method Summary collapse
-
#call(exception, locale, key, options) ⇒ void
Raises
exception
.
Instance Method Details
#call(exception, locale, key, options) ⇒ void
This method returns an undefined value.
Raises exception
.
18 19 20 |
# File 'lib/metasploit/model/spec/i18n_exception_handler.rb', line 18 def call(exception, locale, key, ) raise exception.to_exception end |