Class XMLLoggingExceptionCallback

  • All Implemented Interfaces:
    com.helger.commons.callback.exception.IExceptionCallback<Throwable>, com.helger.commons.callback.ICallback, com.helger.commons.error.level.IHasErrorLevel, com.helger.commons.state.IErrorIndicator, com.helger.commons.state.ISuccessIndicator, Serializable

    public class XMLLoggingExceptionCallback
    extends com.helger.commons.callback.exception.LoggingExceptionCallback
    A special version of the LoggingExceptionCallback that handles the most common XML exceptions in a nice way :)
    Author:
    Philip Helger
    See Also:
    Serialized Form
    • Constructor Detail

      • XMLLoggingExceptionCallback

        public XMLLoggingExceptionCallback()
      • XMLLoggingExceptionCallback

        public XMLLoggingExceptionCallback​(@Nonnull
                                           com.helger.commons.error.level.IErrorLevel aErrorLevel)
    • Method Detail

      • getLogMessage

        @Nonnull
        @Nonempty
        @OverrideOnDemand
        protected String getLogMessage​(@Nullable
                                       Throwable t)
        Overrides:
        getLogMessage in class com.helger.commons.callback.exception.LoggingExceptionCallback
      • isLogException

        protected boolean isLogException​(@Nullable
                                         Throwable t)
        Overrides:
        isLogException in class com.helger.commons.callback.exception.LoggingExceptionCallback