Exception: Bricolage::JobFailureByException
- Inherits:
-
JobFailure
- Object
- StandardError
- ApplicationError
- JobFailure
- Bricolage::JobFailureByException
- Defined in:
- lib/bricolage/exception.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#original ⇒ Object
readonly
Returns the value of attribute original.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(msg, orig = nil) ⇒ JobFailureByException
constructor
A new instance of JobFailureByException.
Constructor Details
#initialize(msg, orig = nil) ⇒ JobFailureByException
Returns a new instance of JobFailureByException.
16 17 18 19 |
# File 'lib/bricolage/exception.rb', line 16 def initialize(msg, orig = nil) super msg @original = orig end |
Instance Attribute Details
#original ⇒ Object (readonly)
Returns the value of attribute original.
21 22 23 |
# File 'lib/bricolage/exception.rb', line 21 def original @original end |
Class Method Details
.wrap(ex) ⇒ Object
12 13 14 |
# File 'lib/bricolage/exception.rb', line 12 def JobFailureByException.wrap(ex) new(ex., ex) end |