Class: WaitRescuer
- Inherits:
-
Wait::BaseRescuer
- Object
- Wait::BaseRescuer
- WaitRescuer
- Defined in:
- lib/automan/wait_rescuer.rb
Instance Method Summary collapse
-
#initialize(exceptions = nil) ⇒ WaitRescuer
constructor
A new instance of WaitRescuer.
-
#log(exception) ⇒ Object
Logs an exception.
Constructor Details
#initialize(exceptions = nil) ⇒ WaitRescuer
Returns a new instance of WaitRescuer.
4 5 6 |
# File 'lib/automan/wait_rescuer.rb', line 4 def initialize(exceptions=nil) super end |
Instance Method Details
#log(exception) ⇒ Object
Logs an exception.
8 9 10 11 12 13 14 15 16 |
# File 'lib/automan/wait_rescuer.rb', line 8 def log(exception) return if @logger.nil? klass = exception.class.name # We can omit the message if it's identical to the class name. = exception. unless exception. == klass @logger.debug("Rescuer") { "rescued: #{klass}#{": #{}" if }" } end |