Hi,
I have code as follows:
try {
try {
SQL execute call
...
other processing
} catch (DataException dex) {
process it
}
} catch (Exception ex) {
process this differently
}
I mistyped my SQL statement and it threw a StatementException which is a typedef for a HandleException which is a sub-class of an ODBCException which is a sub-class of DataException. However, the HandleException gets caught by the Exception clause and NOT the DataException clause.
Can someone explain this to me?
It also seems wierd that with HandleExceptions I have to do a toString() call to get the text instead of message() like everything else. Am I missing something?
Thanks,
Doug





