Skip to Main Content

Java Development Tools

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!

How to catch ora-00001 in an AMImpl.java

Jose ArósteguiMay 12 2019 — edited May 14 2019

Hi experts,

I'm using Jdev 12.2.1.0.0 and I'd need to catch ORA-00001 unique constraint exception when inserting like this from my AMimpl.java class:

...

                    try {

                        myVO.insertRow(newrow);

                    } catch (Exception e) {

                        logger.info("Controlled error!");

                    }

..

How can I do it?

Thanks,
Jose.

Comments
Post Details
Added on May 12 2019
5 comments
671 views