class Kitchen::StandardError

Base exception class from which all Kitchen exceptions derive. This class nests an exception when this class is re-raised from a rescue block.

Attributes

original[R]

@return [::StandardError] the original (wrapped) exception

Public Class Methods

new(msg, original = $ERROR_INFO) click to toggle source

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

@param msg [String] exception message @param original [::StandardError] an original exception which will be

wrapped (default: `$ERROR_INFO`)
Calls superclass method
# File lib/kitchen/errors.rb, line 126
def initialize(msg, original = $ERROR_INFO)
  super(msg)
  @original = original
end