public class ErrorHandler extends AbstractMuleObjectOwner<MessagingExceptionHandlerAcceptor> implements MessagingExceptionHandlerAcceptor, MuleContextAware, org.mule.runtime.api.lifecycle.Lifecycle, GlobalNameableObject
MessagingExceptionHandlerAcceptor to be part of ErrorHandler.| Modifier and Type | Field and Description |
|---|---|
protected String |
globalName |
flowConstruct, messagingExceptionHandler, muleContext| Constructor and Description |
|---|
ErrorHandler() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(Event event) |
boolean |
acceptsAll() |
org.reactivestreams.Publisher<Event> |
apply(MessagingException exception) |
List<MessagingExceptionHandlerAcceptor> |
getExceptionListeners() |
String |
getGlobalName() |
protected List<MessagingExceptionHandlerAcceptor> |
getOwnedObjects() |
Event |
handleException(MessagingException exception,
Event event)
Take some action when a messaging exception has occurred (i.e., there was a message in play when the exception occurred).
|
void |
initialise() |
void |
setExceptionListeners(List<MessagingExceptionHandlerAcceptor> exceptionListeners) |
void |
setGlobalName(String globalName) |
dispose, getFlowConstruct, getMuleContext, setFlowConstruct, setMessagingExceptionHandler, setMuleContext, start, stopgetAnnotation, getAnnotations, getLocation, setAnnotationsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetMuleContextprotected String globalName
public String getGlobalName()
getGlobalName in interface GlobalNameableObjectpublic void setGlobalName(String globalName)
setGlobalName in interface GlobalNameableObjectpublic Event handleException(MessagingException exception, Event event)
MessagingExceptionHandlerhandleException in interface MessagingExceptionHandlerexception - which occurredevent - which was being processed when the exception occurredpublic org.reactivestreams.Publisher<Event> apply(MessagingException exception)
apply in interface Function<MessagingException,org.reactivestreams.Publisher<Event>>apply in interface MessagingExceptionHandlerpublic void setExceptionListeners(List<MessagingExceptionHandlerAcceptor> exceptionListeners)
public List<MessagingExceptionHandlerAcceptor> getExceptionListeners()
public void initialise()
throws org.mule.runtime.api.lifecycle.InitialisationException
initialise in interface org.mule.runtime.api.lifecycle.Initialisableinitialise in class AbstractMuleObjectOwner<MessagingExceptionHandlerAcceptor>org.mule.runtime.api.lifecycle.InitialisationExceptionprotected List<MessagingExceptionHandlerAcceptor> getOwnedObjects()
getOwnedObjects in class AbstractMuleObjectOwner<MessagingExceptionHandlerAcceptor>public boolean accept(Event event)
accept in interface Acceptorevent - Event to route through exception handlerMessagingExceptionHandler should handler exception false
otherwisepublic boolean acceptsAll()
acceptsAll in interface AcceptorCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.