Troubleshooting
Problem
XPath to get localized error message out of tw.system.error
Resolving The Problem
How do I get the human readable error message out of tw.system.error?
You can get this by the following:
tw.system.error.xpath("/error/localizedMessage").item(0).getText();
Generally this would be used in an exception handler to report the error in some way (logs, coach, email service, etc).
[{"Product":{"code":"SSFPRP","label":"WebSphere Lombardi Edition"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Not Applicable","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"7.2;7.1;7.0.1;6.2.2;6.2.1;6.2;6.1;6.0.1","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]
Historical Number
219
Product Synonym
Teamworks TW Lombardi
Was this topic helpful?
Document Information
More support for:
WebSphere Lombardi Edition
Software version:
7.2, 7.1, 7.0.1, 6.2.2, 6.2.1, 6.2, 6.1, 6.0.1
Operating system(s):
AIX, HP-UX, Linux, Solaris, Windows
Document number:
139365
Modified date:
15 June 2018
UID
swg21439665
Manage My Notification Subscriptions