Exception: I18n::Tasks::CommandError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/i18n/tasks/command_error.rb

Overview

When this type of error is caught:

  1. show error message of the backtrace

  2. exit with non-zero exit code

Instance Method Summary collapse

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, message) # rubocop:disable Style/OptionalArguments
  super(message)
  set_backtrace error.backtrace if error
end