You can check for possible constraint violations in your code, then there will be no SQL exception at all (or in most cases). And your application might even work faster (exceptions are expensive).
-marina
[Message sent by forum member 'mvatkina']
http://forums.java.net/jive/thread.jspa?messageID=471759