Mapping of validation error reason codes
You can map error reason codes to Management Center objects for a more descriptive error response.
Before you begin
About this task
Procedure
- Open WebSphere Commerce Developer.
- Open one of the Management Center object definition files. Choose the file that describes the object with which you are working.
- In the validation error mapping section, identify the validation object element that contains the reason code mapping. If one does not exist, create a new validation object element for the Management Center object.
- Add a new
ReasonCodeMapping
for the service reason code and the property of the Management Center object with which it should be associated. - Save the file.
- Restart the WebSphere Commerce Server and test your changes.
- Deploy your changes to your production environment.