As with the SAX and DOM factory classes, one exceptionhandles requested — but unsupported — features, and another exceptionhandles instantiation errors.
对于SAX和DOM工厂类,一个异常处理已请求的但不受支持的特性,另一个异常处理实例化错误。
2
For transparent switch over, applications can be coded to catch the StaleConnection exception and retry a specified number of times to obtain new connection handles.
This code is included in the code which handles the click event for the Invoke Service button and its purpose is to avoid a null pointer exception when the web service is invoked with an empty string.