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!

Login database error handling

User_Q9C3JDec 1 2022

Hello,
I am using JDev Studio Edition Version 12.2.1.4.0
I have been researching how to catch a database connection error and most say creating a custom class that extends DCErrorHandlerImpl with an override to reportException() is a good way to catch this.
However, I can't get this to work. I included the path in DataBindings.cpx ErrorHandlerClass attribute. I basically want to do error handling when the application can't get a db connection. For example, if the pool size is 1 and I try to access the app, is there a way to catch this exception in code? I can't get the reportException() function to be called when there is an exception for this.
Any help would be great, thanks.

Comments

Timo Hahn

There was an excellent article in an old Oracle Magazine that described the different layers and their exception handlers. This article is no longer available :(
However, the code can still be downloaded at https://github.com/tompeez/Old_Sample_Code/raw/main/o23adf-1896561.zip.
I only have a link to https://dokumen.tips/download/link/oracle-adf-architecture-tv-development-error-handling showing the content of the article. Or you look at https://www.oracle.com/application-development/technologies/adf/architecturesquare.html#tv and search the site for 'Error Handling. This will give you 4 videos about the content of the article.

Timo

1 - 1

Post Details