org.apache.tapestry5.ioc.services
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
 boolean exceptionLogged(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(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


Copyright © 2003-2012 The Apache Software Foundation.