Interface ExceptionHandlerService

All Known Implementing Classes:
ExceptionHandlerServiceImpl

public interface ExceptionHandlerService
This service manages the ExceptionHandlers.
  • Method Details

    • findBestMatchingHandler

      Optional<ExceptionHandler> findBestMatchingHandler(Class<? extends Exception> exceptionClass)
      This method returns the best matching ExceptionHandler 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.