Exception: PDK::CLI::FatalError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/pdk/cli/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg = _('An unexpected error has occurred, try running the command again with --debug'), exit_code = 1) ⇒ FatalError

Returns a new instance of FatalError.



6
7
8
9
# File 'lib/pdk/cli/errors.rb', line 6

def initialize(msg = _('An unexpected error has occurred, try running the command again with --debug'), exit_code = 1)
  @exit_code = exit_code
  super(msg)
end

Instance Attribute Details

#exit_codeObject (readonly)

Returns the value of attribute exit_code.



4
5
6
# File 'lib/pdk/cli/errors.rb', line 4

def exit_code
  @exit_code
end