Class XMLLoggingExceptionCallback

java.lang.Object
com.helger.commons.callback.exception.LoggingExceptionCallback
com.helger.xml.serialize.read.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

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
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    XMLLoggingExceptionCallback(com.helger.commons.error.level.IErrorLevel aErrorLevel)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected String
     
    protected boolean
     

    Methods inherited from class com.helger.commons.callback.exception.LoggingExceptionCallback

    getErrorLevel, onException, setErrorLevel, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.helger.commons.error.level.IHasErrorLevel

    hasErrorLevel, isError, isFailure, isNoError, isSuccess

    Methods inherited from interface com.helger.commons.state.ISuccessIndicator

    and, or
  • Constructor Details

    • XMLLoggingExceptionCallback

      public XMLLoggingExceptionCallback()
    • XMLLoggingExceptionCallback

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

    • 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