public interface MuleEvent extends Serializable
Message| Modifier and Type | Method and Description |
|---|---|
Optional<Error> |
getError()
When a mule component throws an error then an
Error object
gets generated with all the data associated to the error. |
Message |
getMessage()
Returns the message for this event
|
<T> TypedValue<T> |
getVariable(String key)
Returns the variable registered under the given
key |
Set<String> |
getVariableNames()
Returns an immutable
Set of variable names. |
<T> TypedValue<T> getVariable(String key)
keyT - the type of the variable value.key - the name or key of the variable. This must be non-null.TypedValue containing the variable's value and DataTypeNoSuchElementException - if the flow variable does not exist.Set<String> getVariableNames()
Set of variable names.Optional<Error> getError()
Error object
gets generated with all the data associated to the error.
This field will only contain a value within the error handler defined
to handle errors. After the error handler is executed the event error field
will be cleared. If another flow is called from within the error handler the flow
will still have access to the error field.
To avoid losing the error field after the error handler the user can define a variable
pointing to the error field.Copyright © 2016 MuleSoft, Inc.. All rights reserved.