Exception: Amigo::Retry::Quit

Inherits:
Error
  • Object
show all
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

Instance Method Summary collapse

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

#wrappedObject

Returns the value of attribute wrapped.



77
78
79
# File 'lib/amigo/retry.rb', line 77

def wrapped
  @wrapped
end