Catching Exceptions

The exception that a web service throws contains a lot of information, and most of it is not easy to read. AgilePoint Server tags the readable message for end-users.

Call the following function to extract the error message:

String error = ShUtil.GetSoapMessage(ex); 

ex is the exception object that contains error message from AgilePoint Server