Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

OCCI and no exceptions thrown !

200454Feb 27 2002
Hi all.

I've now written a few small OCCI apps, which compile and run without problem. I wanted, however, to test the exception handling...so I modified one of my queries so that an error should be generated. The problem is, once the query is executed, the program exits immediately with only "Abbruch" written to stdout.

Why should this happen when I have my statements enclosed in a try/catch block which catches both SQLException and exception ? My catch blocks are never reached !

Have I missed something blatantly obvious ?

I am compiling under Linux with g++ version 2.95.3

Cheers,

Kristian.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 24 2002
Added on Feb 27 2002
3 comments
547 views