Exception: I18n::Tasks::CommandError
- Inherits:
-
StandardError
- Object
- StandardError
- I18n::Tasks::CommandError
- Defined in:
- lib/i18n/tasks/command_error.rb
Overview
When this type of error is caught:
-
show error message of the backtrace
-
exit with non-zero exit code
Instance Method Summary collapse
-
#initialize(error = nil, message) ⇒ CommandError
constructor
rubocop:disable Style/OptionalArguments.
Constructor Details
#initialize(error = nil, message) ⇒ CommandError
rubocop:disable Style/OptionalArguments
9 10 11 12 |
# File 'lib/i18n/tasks/command_error.rb', line 9 def initialize(error = nil, ) # rubocop:disable Style/OptionalArguments super() set_backtrace error.backtrace if error end |