An exception is caught by a Choice exception strategy. How is the exception routed?

Study for the MuleSoft Associate / Development Fundamental Test. Master key concepts with flashcards and multiple choice questions, complete with hints and explanations. Prepare thoroughly for your exam!

Multiple Choice

An exception is caught by a Choice exception strategy. How is the exception routed?

Explanation:
In a Choice exception strategy, there are multiple branches each with a when condition. When an exception occurs, Mule evaluates these conditions from top to bottom and routes the exception to the first branch whose condition is true. This means the first matching condition handles the exception, and further branches aren’t considered. It’s not random, not all matching branches, and not the last one. If none match, the configured default or outer handler takes over.

In a Choice exception strategy, there are multiple branches each with a when condition. When an exception occurs, Mule evaluates these conditions from top to bottom and routes the exception to the first branch whose condition is true. This means the first matching condition handles the exception, and further branches aren’t considered. It’s not random, not all matching branches, and not the last one. If none match, the configured default or outer handler takes over.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy