>===== Original Message From [EMAIL PROTECTED] =====
>> 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.

Actually, I should've mentioned that in my email before, since I'd seen that, 
but  there is only an 'XMLException' that's used in the samples. I had put 
that in my code, but the exception that was thrown was still being caught in 
the (...){ } segment.

 - Kaushal


>Dave

Reply via email to