Interface ExceptionTracker

  • All Known Implementing Classes:
    ExceptionTrackerImpl

    public interface ExceptionTracker
    Used by LoggingDecorator to track which exceptions have been logged during the current request (the ExceptionTracker is perthread). This keeps redundant information from appearing in the console output.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean exceptionLogged​(java.lang.Throwable exception)
      Returns true if the indicated exception has already been logged (it is assumed that the exception will be logged if this method returns false).
    • Method Detail

      • exceptionLogged

        boolean exceptionLogged​(java.lang.Throwable exception)
        Returns true if the indicated exception has already been logged (it is assumed that the exception will be logged if this method returns false). The exception is recorded for later checks.
        Parameters:
        exception - to check
        Returns:
        false if the exception has not been previously checked, true otherwise