Exception: Kitchen::StandardError
- Inherits:
-
StandardError
- Object
- StandardError
- Kitchen::StandardError
- 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.
Direct Known Subclasses
ClientError, StateFileLoadError, TransientFailure, UserError
Instance Attribute Summary collapse
-
#original ⇒ Object
readonly
Returns the value of attribute original.
Instance Method Summary collapse
-
#initialize(msg, original = $!) ⇒ StandardError
constructor
A new instance of StandardError.
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
#original ⇒ Object (readonly)
Returns the value of attribute original.
53 54 55 |
# File 'lib/kitchen/errors.rb', line 53 def original @original end |