> I don't know how to see the type of Exception being thrown. I'm getting
ane
> exception while executing the following piece of code.
>
> cout << "getting RefList now.. with xpath=" << xpath << endl;
> const NodeRefList theResult =
> theEvaluator.selectNodeList(theDOMSupport,
> theContextNode,
>
XalanDOMString(xpath.c_str()).c_str(),
>
theDocument->getDocumentElement());
> cout << "Length of list is: " << theResult.getLength() <<
endl;
>
> <... some code... >
>
> catch(...)
> {
> cerr << "Exception caught!" << endl;
> }
>
>
> - the first cout prints, but then I get the 'Exception caught!' message.
> Is there anyway I can get the type (& reason! :)) of this exception?
> Thanks.. Kaushal
Take a look at some of the other sample applications and grep through the
core source code for "catch" and you'll see what other sorts of exceptions
you can catch.
Dave