Sha256: 2c114a67acda1c537e6c5b15f10090187d63f636035944c3385300210e4f2d61

Contents?: true

Size: 333 Bytes

Versions: 4

Compression:

Stored size: 333 Bytes

Contents

module I18n
  module Tasks
    # When this type of error is caught:
    # 1. show error message of the backtrace
    # 2. exit with non-zero exit code
    class CommandError < StandardError

      def initialize(error = nil, message)
        super(message)
        set_backtrace error.backtrace if error
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
i18n-tasks-0.9.2 lib/i18n/tasks/command_error.rb
i18n-tasks-0.9.1 lib/i18n/tasks/command_error.rb
i18n-tasks-0.9.0 lib/i18n/tasks/command_error.rb
i18n-tasks-0.9.0.rc2 lib/i18n/tasks/command_error.rb