Method: Kitchen::StandardError#initialize

Defined in:
lib/kitchen/errors.rb

#initialize(msg, original = $ERROR_INFO) ⇒ StandardError

Creates a new StandardError exception which optionally wraps an original exception if given or detected by checking the $! global variable.

Parameters:

  • msg (String)

    exception message

  • original (::StandardError) (defaults to: $ERROR_INFO)

    an original exception which will be wrapped (default: $ERROR_INFO)



97
98
99
100
# File 'lib/kitchen/errors.rb', line 97

def initialize(msg, original = $ERROR_INFO)
  super(msg)
  @original = original
end