public class DispatchErrorEvent extends AbstractDispatchEvent<DispatchErrorEvent>
Constructor and Description |
---|
DispatchErrorEvent(String owningProcess,
int[] index,
InvocationContext context,
String errorMessage,
Throwable t,
DispatchErrorType failureType,
Activity<?> failedActivity)
Create a new error event
|
Modifier and Type | Method and Description |
---|---|
Throwable |
getCause()
Return the throwable behind this error, or null if there was no exception
raised to create it.
|
Activity<?> |
getFailedActivity()
Return the Activity instance which failed to produce this error message
|
DispatchErrorType |
getFailureType()
Return the type of failure, this is used by upstream dispatch layers to
determine whether they can reasonably handle the error message
|
String |
getMessage()
Return the textual message representing this error
|
DispatchMessageType |
getMessageType()
Return the DispatchMessageType for this event object
|
DispatchErrorEvent |
popOwningProcess()
Return a copy of the event subclass with the last owning process removed
from the owning process list.
|
DispatchErrorEvent |
pushOwningProcess(String localProcessName)
Return a copy of the event subclass with the specified local process name
appended to the owning process identifier field.
|
getContext, getIndex, getOwningProcess, isFinal, popOwner, pushOwner, toString
public DispatchErrorEvent(String owningProcess, int[] index, InvocationContext context, String errorMessage, Throwable t, DispatchErrorType failureType, Activity<?> failedActivity)
owningProcess
- index
- context
- errorMessage
- t
- public DispatchErrorType getFailureType()
public Activity<?> getFailedActivity()
public Throwable getCause()
public String getMessage()
public DispatchErrorEvent popOwningProcess() throws ProcessIdentifierException
Event
popOwningProcess
in class Event<DispatchErrorEvent>
ProcessIdentifierException
public DispatchErrorEvent pushOwningProcess(String localProcessName) throws ProcessIdentifierException
Event
pushOwningProcess
in class Event<DispatchErrorEvent>
localProcessName
- name to addProcessIdentifierException
- if the local process name contains the ':' characterpublic DispatchMessageType getMessageType()
AbstractDispatchEvent
getMessageType
in class AbstractDispatchEvent<DispatchErrorEvent>
DispatchMessageType.ERROR
Copyright © 2015–2016 The Apache Software Foundation. All rights reserved.