public class ExceptionTypeFilter extends PayloadTypeFilter
| Constructor and Description |
|---|
ExceptionTypeFilter() |
ExceptionTypeFilter(Class expectedType) |
ExceptionTypeFilter(String expectedType) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(Event event,
Event.Builder builder)
Check a given event against this filter.
|
boolean |
accept(org.mule.runtime.api.message.Message message,
Event.Builder builder)
Check a given message against this filter.
|
equals, getExpectedType, hashCode, setExpectedTypepublic ExceptionTypeFilter()
public ExceptionTypeFilter(String expectedType) throws ClassNotFoundException
ClassNotFoundExceptionpublic ExceptionTypeFilter(Class expectedType)
public boolean accept(Event event, Event.Builder builder)
event - a non null event to filter.builder - an event builder in case the filter needs to make changes to the event.true if the event matches the filterpublic boolean accept(org.mule.runtime.api.message.Message message,
Event.Builder builder)
accept in interface Filteraccept in class PayloadTypeFiltermessage - a non null message to filter.builder - an event builder in case the filter needs to make changes to the event.true if the message matches the filterCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.