on 07-06-2022 10:36 AM
In RAP, I understand that the REPORTED table is used to pass all types of messages. However, I see that the REPORTED table is also used for error messages when there is an explicit FAILED table to report errors. Why is it not enough to fill only the FAILED table in this case?
Hi Llyod ,
Failed is to indicate that a particular transaction has failed or part of a particular transaction has failed. You will not be able to display custom messages in UI or API through failed structure. For example in context of an API you can use failed structure to set the status code to "400" to indicate that the interaction failed and send the exact message through reported.
Reported on the other hand is a message handling structure that is used to pass on Success , Warnings or Information messages to either API or UI based on your requirement. Based on the nature of the message ( State or Transactional ) you can control how the message would appear in the UI .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
9 | |
8 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.