public class SubFlowFailureException
extends org.mule.runtime.api.exception.TypedException
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 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.| Modifier and Type | Method and Description |
|---|---|
static SubFlowFailureException |
newInstance(org.mule.runtime.api.component.execution.ComponentExecutionException e) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic static SubFlowFailureException newInstance(org.mule.runtime.api.component.execution.ComponentExecutionException e)
Copyright © 2022 MuleSoft, Inc.. All rights reserved.