Class DefaultLifeCycleErrorHandler

java.lang.Object
org.jppf.node.event.DefaultLifeCycleErrorHandler
All Implemented Interfaces:
NodeLifeCycleErrorHandler

public class DefaultLifeCycleErrorHandler extends Object implements NodeLifeCycleErrorHandler
The default node life cycle error handler, used when the life cycle listener implementation does not implement NodeLifeCycleErrorHandler.
Author:
Laurent Cohen
  • Field Details

  • Constructor Details

    • DefaultLifeCycleErrorHandler

      public DefaultLifeCycleErrorHandler()
  • Method Details

    • handleError

      public void handleError(NodeLifeCycleListener listener, NodeLifeCycleEvent event, Throwable t)
      Handle the throwable raised for the specified event.

      This method logs the uncaught throwable, with a level of detail based on the configured logging level. If debug level is enabled, then the full stack trace will be logged, otherwise only the throwable class and its message will be logged.

      if the value of the boolean configuration property "jppf.node.listener.errors.propagate" is true, and if the throwable is an Error, then it will be propagated up the call stack.

      Specified by:
      handleError in interface NodeLifeCycleErrorHandler
      Parameters:
      listener - the listener whose method was being executed when the thowable was raised.
      event - the event notification for which an error was raised.
      t - the uncaught throwable that was raised during the notification.