Class SubFlowFailureException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.mule.runtime.api.exception.MuleRuntimeException
org.mule.runtime.api.exception.TypedException
org.mule.module.soapkit.internal.exception.SubFlowFailureException
- All Implemented Interfaces:
Serializable
public class SubFlowFailureException
extends org.mule.runtime.api.exception.TypedException
This exception carries the exception raised inside an executing sub flow.
There are 2 important things in this exception: -> It's a
TypedException that propagates the ErrorType that comes in
the Event that was being processed in the sub flow. -> The cause of this exception is a
SubFlowFailureException.SubFlowFailureErrorMessageAwareException that is defined in this same class and implements the
ErrorMessageAwareException interface, by creating this structure of TypedException that contains an
ErrorMessageAwareException we are able being able to propagate the errorType and errorMessage to the the runtime so the
main flow can handle this error with the same errorType raised by the subflow and access the payload and attributes of the sub
flow when failed by using this expression: #[error.errorMessage]
Also note that all information provided by this exception is extracted from the Event of a
ComponentExecutionException that is the exception raised by a flow when fails.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic SubFlowFailureExceptionnewInstance(org.mule.runtime.api.component.execution.ComponentExecutionException e) Methods inherited from class org.mule.runtime.api.exception.TypedException
getErrorTypeMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
newInstance
public static SubFlowFailureException newInstance(org.mule.runtime.api.component.execution.ComponentExecutionException e)
-