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 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]| Constructor and Description |
|---|
SubFlowFailureException(org.mule.runtime.api.message.Error error) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringCopyright © 2024 MuleSoft, Inc.. All rights reserved.