module Subserver::ExceptionHandler
Public Instance Methods
handle_exception(ex, ctxHash={})
click to toggle source
# File lib/subserver/exception_handler.rb, line 17 def handle_exception(ex, ctxHash={}) Subserver.error_handlers.each do |handler| begin handler.call(ex, ctxHash) rescue => ex Subserver.logger.error "!!! ERROR HANDLER THREW AN ERROR !!!" Subserver.logger.error ex Subserver.logger.error ex.backtrace.join("\n") unless ex.backtrace.nil? end end end