Re: [ojb-users] no help with exception messsages
Brought to you by:
thma
From: Thomas M. <tho...@ho...> - 2002-06-04 05:57:03
|
Hi Arvind, Arvind Gudipati wrote: > I was getting a ojb.broker.PersistenceBrokerSQLException on several > occasion .. i had to debug the source files of OJB to find the reason > that i was inserting NULLs to a NOT NULL column or the column name was > not existing etc., > > I thought it would be helpful if when the exception is thrown, there are > some helpful messages of what REALLY is the problem.. > > > Check out for example JdbcAccess.java line:153 the exception is simple > consumed ... > Mhh, I don't know which method of JdbcAccess you are referring to, as I have only new code than release 0.8.400 at hand. There should not be any place where exceptions are just consumend without deeper reason. typically exceptions are sometimes caught, converted to a PBException and then rethrown. In rare cases exceptions are just consumed. In those cases there should be a comment why this is done. And typically those things are logged. hth, Thomas > Arvind > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ***************************************************************************************** > This E-mail is from PANACYA Inc. The E-mail and any files transmitted > with it are confidential and may also be privileged and intended solely > for the use of the individual or entity to whom they are addressed. Any > unauthorized direct or indirect dissemination, distribution or copying > of this message and any attachments is strictly prohibited. If you have > received the E-mail in error please notify adm...@pa... or > telephone (410) 910-3300. > **************************************************************************************** > |