Class ConditionalRejectingErrorHandler.DefaultExceptionStrategy

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.apache.commons.logging.Log logger  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isFatal​(java.lang.Throwable t)  
      protected boolean isUserCauseFatal​(java.lang.Throwable cause)
      Subclasses can override this to add custom exceptions.
      protected void logFatalException​(ListenerExecutionFailedException t, java.lang.Throwable cause)
      Log the fatal ListenerExecutionFailedException at WARN level, excluding stack trace.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • logger

        protected final org.apache.commons.logging.Log logger
    • Constructor Detail

      • DefaultExceptionStrategy

        public DefaultExceptionStrategy()
    • Method Detail

      • logFatalException

        protected void logFatalException​(ListenerExecutionFailedException t,
                                         java.lang.Throwable cause)
        Log the fatal ListenerExecutionFailedException at WARN level, excluding stack trace. Subclasses can override this behavior.
        Parameters:
        t - the ListenerExecutionFailedException.
        cause - the root cause (skipping any general MessagingExceptions).
        Since:
        2.2.4
      • isUserCauseFatal

        protected boolean isUserCauseFatal​(java.lang.Throwable cause)
        Subclasses can override this to add custom exceptions.
        Parameters:
        cause - the cause
        Returns:
        true if the cause is fatal.