Method: PDK::CLI::FatalError#initialize

Defined in:
lib/pdk/cli/errors.rb

#initialize(msg = _('An unexpected error has occurred. Try running the command again with --debug'), opts = {}) ⇒ 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'), opts = {})
  @exit_code = opts.fetch(:exit_code, 1)
  super(msg)
end