Parent

DaemonKit::ErrorHandlers::Base

Error handlers in DaemonKit are used by the #Safety class. Any error handler has to support the interface provided by this class. It's also required that safety handlers implement a singleton approach (handled by default by #Base).

Public Class Methods

instance() click to toggle source
# File lib/daemon_kit/error_handlers/base.rb, line 13
def instance
  @instance ||= new
end

Public Instance Methods

handle_exception( exception ) click to toggle source

Error handlers should overwrite this method and implement their own reporting method.

# File lib/daemon_kit/error_handlers/base.rb, line 27
def handle_exception( exception )
  raise NoMethodError, "Error handler doesn't support #handle_exception"
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.