Refer to the exhibits.
The Validation component in the private flow throws an error.
What response message is returned to a web client request to the main flow's HTTP Listener?
Refer to the exhibits.
The Validation component in the private flow throws an error.
What response message is returned to a web client request to the main flow's HTTP Listener?
When the validation component in the private flow throws an error, the error is propagated to the main flow due to the 'On Error Propagate' element in the private flow's error handler. Once the error reaches the main flow, the 'On Error Continue' element in the main flow's error handler catches the error and sets the payload to 'Error - main flow'. Consequently, the response message returned to the web client request to the main flow's HTTP Listener is 'Error - main flow'.
C is the correct answer. Tested in anypoint studio as well.
C. Error - main flow - Because we have "On Error continue" with a custom message! - The final result will be Error - main flow with status code 200
C - Error Propqgate will propagate the error to the triggered flow, after that the triggered flow will catch error by On Error Continue scope. Because of Error Continue scope type, all processes on main flow canceled and logged error by payload in Error Continue Scope
D - is the correct answer
C is correct. Private flow throws the error as it is having On error propagate. So The Flow ref will throw error in main flow, then the Error handler in main flow comes into the picture. so 3rd option satisfies.
C is the answer Refer https://blogs.mulesoft.com/dev-guides/how-to-tutorials/mule4-error-handling-deep-dive/
Private flow propagate the error which is handled by main flow error handler and override the message to "Error - main flow" and no error object will be generated as it is on error continue.