Open topic with navigation

TIBCO® Enterprise Administrator 2.4.2

# Extracting Error Information in the GUI

Code your custom UI error function to extract information from the error response.

When an operation method throws an exception, the agent library sends error information to the server, which in turn sends it back to the browser that invoked the operation. Your JavaScript code can extract fields from the error information.

Procedure Code the error response to extract the `message`, `details` and `status` fields from the error, as needed.

    function(data) {
      // Success response
      ...
      },
    function(error) {
    // Error response
      // Get the error message
      var errorMessage = error.message;
      // Get the error details
      var errorDetails = error.details;
      // Get the error status code
      var errorStatusCode = error.status;

      // Use this information
      ...
      });
    }

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.