Exception: Bricolage::JobFailureByException

Inherits:
JobFailure show all
Defined in:
lib/bricolage/exception.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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

#originalObject (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.message, ex)
end