Open topic with navigation

TIBCO® Enterprise Administrator 2.4.2

# 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:

- Code operation methods to throw appropriate and helpful exceptions.
  - Choose the exception class that best characterizes the situation.
  - Choose an HTTP status code that gives useful information.
  - In the error string, explain the reason the operation could not complete correctly, and suggest recovery strategies for the end user.
  - Use wording that end users understand.
- Code custom GUI elements to extract error information:
  - Extract the HTTP status code. The GUI can use it to select an appropriate response action.
  - Extract the error string. The GUI can display it to the user.
- Code custom GUI elements to respond appropriately to errors. Consider these possible responses:
  - Display the error string.
  - Display other information.
  - Navigate to a different GUI page. For example, if the managed object that the current page represents no longer exists, consider navigating to a page that lists all objects of its type.
  - Let the user choose from a set of recovery options.

Subtopics

Did you find this helpful?

Yes No
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO® Enterprise Administrator

Copyright © 1996-2025. Cloud Software Group, Inc. All Rights Reserved.