Method: PDK::CLI::ExitWithError#initialize

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

#initialize(msg, opts = {}) ⇒ ExitWithError

Returns a new instance of ExitWithError.



18
19
20
21
22
# File 'lib/pdk/cli/errors.rb', line 18

def initialize(msg, opts = {})
  @exit_code = opts.fetch(:exit_code, 1)
  @log_level = opts.fetch(:log_level, :error)
  super(msg)
end