public class MatchingExceptionResolver extends Object implements ExceptionResolver
IkasanExceptionHandler that relies on a
configuration of ExceptionGroups to match Throwables and apply
Exception Actions
Includes ability so set rules that are either specific to named components,
on non specific| Constructor and Description |
|---|
MatchingExceptionResolver(List<ExceptionGroup> exceptionGroupings)
Constructor
|
MatchingExceptionResolver(List<ExceptionGroup> exceptionGroupings,
Map<String,List<ExceptionGroup>> componentExceptionGroupings)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
ExceptionAction |
resolve(String componentName,
Throwable throwable)
Push an exception that occurred outside the scope of handling a data event to the Exception Handler
|
String |
toString() |
public MatchingExceptionResolver(List<ExceptionGroup> exceptionGroupings, Map<String,List<ExceptionGroup>> componentExceptionGroupings)
exceptionGroupings - componentExceptionGroupings - public MatchingExceptionResolver(List<ExceptionGroup> exceptionGroupings)
exceptionGroupings - public ExceptionAction resolve(String componentName, Throwable throwable)
ExceptionResolverresolve in interface ExceptionResolvercomponentName - name of the component within which the exception occurredthrowable - The exceptionCopyright © 2007-2019 Ikasan. All Rights Reserved.