Project

Profile

Help

Getting Exception Information

Added by Anonymous over 19 years ago

Legacy ID: #3284943 Legacy Poster: James Birchfield (moatas)

When performing a compile on an XQuery using the StaticContext, if something is wrong, it throws an XPathException. There is also information printed to Standard Err. How do I access the same information printed to Standard Err? It contains much more detailed information such as line number, etc. Thanks! Birch


Replies (1)

RE: Getting Exception Information - Added by Anonymous over 19 years ago

Legacy ID: #3285724 Legacy Poster: Michael Kay (mhkay)

This information is displayed by the StandardErrorListener. You can register your own ErrorListener with the Configuration object (setErrorListener() method) and can then access the information directly. See the code of the StandardErrorListener to see where the information comes from. Michael Kay

    (1-1/1)

    Please register to reply