Error Handling in Agents and Custom User Interfaces
When an agent cannot complete an operation, the operation method throws an exception. The error result propagates back through the server to the browser GUI. Code your agent and custom GUI so that errors help the user understand and correct the problem.
Consider these recommendations as you design and code your agent's handling of errors in operation calls:
- Coding Exceptions in Agent Operations
When an operation method throws an exception, you can either use the implicit status code associated with the exception class, or encode the HTTP status code explicitly. - Exceptions and Implicit HTTP Status Codes
When your agent code throws an exception, the agent library catches it. The library implicitly maps certain exception classes to corresponding status codes. - Extracting Error Information in the GUI
Code your custom UI error function to extract information from the error response.
Copyright © Cloud Software Group, Inc. All rights reserved.