ExceptionRecognizerService

Used by the framework to iterate over all registered ExceptionRecognizer s in the correct order.

API

ExceptionRecognizerService.java
interface ExceptionRecognizerService {
  Can<ExceptionRecognizer> getExceptionRecognizers()     (1)
  Optional<Recognition> recognize(Throwable ex)     (2)
  Optional<Recognition> recognizeFromSelected(Can<ExceptionRecognizer> recognizers, Throwable ex)     (3)
}
1 getExceptionRecognizers()

All ExceptionRecognizer implementations as discovered by the IoC container, honoring order of precedence.

2 recognize(Throwable)

Takes into consideration ExceptionRecognizers as given by #getExceptionRecognizers() .

3 recognizeFromSelected(Can, Throwable)

Takes into consideration ExceptionRecognizers as given by recognizers .

Members

getExceptionRecognizers()

All ExceptionRecognizer implementations as discovered by the IoC container, honoring order of precedence.

recognize(Throwable)

Takes into consideration ExceptionRecognizers as given by #getExceptionRecognizers() .

recognizeFromSelected(Can, Throwable)

Takes into consideration ExceptionRecognizers as given by recognizers .

Implementation

The framework provides a default implementation of this service, o.a.c.core.runtimeservices.recognizer.ExceptionRecognizerServiceDefault.