QUESTION, ANSWER, EXPLANATION
This question has been asked by one of our members and a similar question could most likely be on the exam. All answers have been verified by MuleSoft certified FoMS experts.
Question
Refer to the exhibits! A web client sends a POST request with the payload {"oid": "1000", "itemid": "AC200", "qty": "4" } to the Mule application. The File Write operation throws a FILE:CONNECTIVITY error. What response message is returned to the web client?
Answer
A) FILE:CONNECTIVITY
B) ORDER:NOT_CREATED
C) OTHER ERROR
D) File written
The correct answer to this question is A.
Explanation
When the FILE:CONNECTIVITY error is thrown by the File Write operation, it is caught by the On Error Continue scope with the type FILE:CONNECTIVITY. Since it is an On Error Continue scope, it will set the payload to "FILE:CONNECTIVITY" which is then sent in a response with the HTTP 200 OK success status response code.
The error type mapping would affect the response, in a case of On Error Propagate, which then would not execute an error scope, would not set the payload and would not send a payload with the HTTP 200 OK success status response code.
RELATED ARTICLES
OTHER ARTICLES
OLDER ARTICLES
LATEST FORUM UPDATES
APIAmeeth, Thursday, 1.9.2022 / 21:23
Jay-Catalyst, Tuesday, 2.11.2021 / 10:48
Matteo, Friday, 3.7.2020 / 16:30
Matteo, Friday, 3.7.2020 / 16:29
Matteo, Friday, 3.7.2020 / 16:28
Caio S Cavalcante, Friday, 22.5.2020 / 16:59
Edo Schatz, Thursday, 21.5.2020 / 13:50
Edo Schatz, Thursday, 21.5.2020 / 11:29
Edo Schatz, Wednesday, 20.5.2020 / 18:18
Edo Schatz, Monday, 18.5.2020 / 16:33
NEW ARTICLES
POPULAR ARTICLES