[Simple-support] how to determine where in the xml file/stream an exception is thrown?
Brought to you by:
niallg
|
From: Lawrence S. <Law...@vt...> - 2009-02-11 00:59:41
|
If I throw an exception in a "setSomething" method, how can I determine where in the XML stream the exception occurred (e.g. the StAX cursor location)? Is this info available in a Validate method? In SAX this is the Locator object and its getLineNumber() and getColumnNumber() methods. |