Exception: Kitchen::StandardError

Inherits:
StandardError
  • Object
show all
Includes:
Error
Defined in:
lib/kitchen/errors.rb

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Error

formatted_exception, formatted_trace

Constructor Details

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

Returns a new instance of StandardError.



55
56
57
58
# File 'lib/kitchen/errors.rb', line 55

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

Instance Attribute Details

#originalObject (readonly)

Returns the value of attribute original.



53
54
55
# File 'lib/kitchen/errors.rb', line 53

def original
  @original
end