Interface ExceptionHandlerService
- All Known Implementing Classes:
ExceptionHandlerServiceImpl
public interface ExceptionHandlerService
This service manages the
ExceptionHandler
s.-
Method Summary
Modifier and TypeMethodDescriptionfindBestMatchingHandler
(Class<? extends Exception> exceptionClass) This method returns the best matchingExceptionHandler
for a given Exception.
-
Method Details
-
findBestMatchingHandler
This method returns the best matchingExceptionHandler
for a given Exception. Best matching means that the Exception that the handler is mapped to has minimal "inheritance distance" to the given exception class.- Parameters:
exceptionClass
- the Exception class to find an ExceptionHandler for.- Returns:
- the best matching ExceptionHandler.
-