MCD-LEVEL-1 · Question #11
Refer to the exhibits. The Validation component in the private flow throws an error. What response message is returned to a client request to the main flow's HTTP Listener?
The correct answer is B. Error - main flow. Error in validation component will get processed by Processer level On Error Propagate block and then error will be rethrown which will get processed by flow level error handler which will set 1) Request is received by HTTP listener 2) Try scope gets executed 3) The validator…
Question
Refer to the exhibits. The Validation component in the private flow throws an error. What response message is returned to a client request to the main flow's HTTP Listener?
Exhibit
Options
- AError - private flow
- BError - main flow
- CSuccess - main flow
- DValidation Error
How the community answered
(30 responses)- A7% (2)
- B83% (25)
- C7% (2)
- D3% (1)
Explanation
Error in validation component will get processed by Processer level On Error Propagate block and then error will be rethrown which will get processed by flow level error handler which will set 1) Request is received by HTTP listener 2) Try scope gets executed 3) The validator component in the Try scope creates an Error Object because the payload is not null. 4) The On Error Propagate handles the error. The payload is set to "Error - Try scope" 6) "Error - Try scope" is returned to the 'On Error Continue' block. Main flow execution stops. Payload is set to "Error - main flow" 7) "Error - main flow" is returned to the requestor in the body of the HTTP request. HTTP Status -------------------------------------------------------------------------------------------------------------------------------------- new question on error handling in real exam: https://docs.mulesoft.com/mule-runtime/4.3/on-error-scope-concept#on-error-continue
Topics
Community Discussion
No community discussion yet for this question.
