Class: Celluloid::Actor
- Inherits:
-
Object
- Object
- Celluloid::Actor
- Defined in:
- lib/creeper/celluloid_ext.rb
Instance Method Summary collapse
Instance Method Details
#handle_crash(exception) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/creeper/celluloid_ext.rb', line 4 def handle_crash(exception) prefix = (@subject.respond_to?(:prefix) rescue nil) ? ("#{@subject.prefix} " rescue nil) : nil Logger.crash("#{prefix}#{@subject.class} crashed!", exception) shutdown ExitEvent.new(@proxy, exception) rescue => ex Logger.crash("#{@subject.class}: ERROR HANDLER CRASHED!", ex) end |