tag:blogger.com,1999:blog-38586079.post3407909524854211507..comments2024-01-22T15:27:00.730+08:00Comments on One size doesn't fit all: JDev ADF: How to log all errors to the databaseChris Muirhttp://www.blogger.com/profile/06566648350240654621noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-38586079.post-13047337181217962622009-09-22T14:32:11.269+08:002009-09-22T14:32:11.269+08:00Replace the example binding code in reportExceptio...Replace the example binding code in reportException() from my post with a JDBC call to the database to do whatever you want. The code will be very similar to my logError() method, except you'll need to obtain a connection to the database using an alternative method from getDBTransaction(), which is ADF BC specific.<br /><br />CM.Chris Muirhttps://www.blogger.com/profile/06566648350240654621noreply@blogger.comtag:blogger.com,1999:blog-38586079.post-30254010394069358972009-09-21T17:56:10.581+08:002009-09-21T17:56:10.581+08:00hi,
may i use without data binding?
thankshi,<br />may i use without data binding?<br />thanksHikitaumahttps://www.blogger.com/profile/03040010581652069358noreply@blogger.comtag:blogger.com,1999:blog-38586079.post-89490126032545534362009-05-25T17:04:26.126+08:002009-05-25T17:04:26.126+08:00Hi Clement
Actually that's a "JBOException" that'...Hi Clement<br /><br />Actually that's a "JBOException" that's raised by the framework and displayed in JavaScript, I can see the JBO error number. As such that should be caught by the error handling mechanism described in the blog post. Give it a go and let us know what results you get.<br /><br />CM.Chris Muirhttps://www.blogger.com/profile/06566648350240654621noreply@blogger.comtag:blogger.com,1999:blog-38586079.post-48602026389412755912009-05-25T16:59:50.301+08:002009-05-25T16:59:50.301+08:00Hi Chris,
I would like to "catch" the errors that ...Hi Chris,<br />I would like to "catch" the errors that display in javascript.<br />For example, this is a DMLConstraintException that is shown in javascript : <br />http://www.cijoint.fr/cj200905/cijn4PvME8.jpg<br /><br />I would like to catch it, but i don't know how to do. Is it more clear?<br /><br />Thanks<br /><br />ClémentClémenthttps://www.blogger.com/profile/05351278402834187786noreply@blogger.comtag:blogger.com,1999:blog-38586079.post-7874874493631547522009-05-25T15:32:15.937+08:002009-05-25T15:32:15.937+08:00Hi Clement
Can you be clearer please? Do you wis...Hi Clement<br /><br />Can you be clearer please? Do you wish to avoid errors in JavaScript altogether, a specific error, or log the JavaScript errors to the database?<br /><br />CM.Chris Muirhttps://www.blogger.com/profile/06566648350240654621noreply@blogger.comtag:blogger.com,1999:blog-38586079.post-1625493221792765652009-05-22T21:26:04.653+08:002009-05-22T21:26:04.653+08:00Hi Chris,
As you said :
"The caveat to this appr...Hi Chris,<br /><br />As you said : <br />"The caveat to this approach is if the developer chooses to bypass the ADF frameworks error handling mechanisms by raising their own exceptions that don't raise a JboException, or error handling is written into JavaScript, this will bypass the ADF custom error handler."<br /><br />sometimes errors appear in javascript. How to avoid this?<br /><br />Thanks<br /><br />ClémentClémenthttps://www.blogger.com/profile/05351278402834187786noreply@blogger.com