Exception: Amigo::Retry::Quit
- Defined in:
- lib/amigo/retry.rb
Overview
Raise this error to finish the job. Usually used when there is a fatal error from deep in a job and they want to jump out of the whole thing. Usually you should log before raising this!
Instance Attribute Summary collapse
-
#wrapped ⇒ Object
Returns the value of attribute wrapped.
Instance Method Summary collapse
-
#initialize(msg = nil) ⇒ Quit
constructor
A new instance of Quit.
Constructor Details
#initialize(msg = nil) ⇒ Quit
Returns a new instance of Quit.
79 80 81 82 |
# File 'lib/amigo/retry.rb', line 79 def initialize(msg=nil) @wrapped = exc?(msg) super(exc_or_msg("quit job", msg)) end |
Instance Attribute Details
#wrapped ⇒ Object
Returns the value of attribute wrapped.
77 78 79 |
# File 'lib/amigo/retry.rb', line 77 def wrapped @wrapped end |