[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

throwing & catching exceptions from object creation



In my application if an object is created without valid data the constructor 
throws an InvalidUpdateException that contains a list of the validity 
constraints that were violated.

However when the ctor throws the InvalidUpdateException apparently the it is 
wrapped in an InvocationTargetException and when it gets to the Transaction 
an OzoneInternalExc is thrown rather than the original 
InvalidUpdateException.

Is it possible to have the original InvalidUpdateException thrown by the 
Transaction back to the code that invokes the object creation?

Thanks,

Don




-------------- log entry --------------------

[warn] (540) Transaction: createObject()
    java.lang.reflect.InvocationTargetException: 
au.com.harrison.innerview.util.InvalidUpdateException at 
au.com.harrison.innerview.util.NamedHierarchicalElementImpl.setNam
            e(NamedHierarchicalElementImpl.java:65)
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


----------------------------------------------------------------------
Post a message:         mailto:ozone-users@ozone-db.org
Unsubscribe:            mailto:ozone-users-request@ozone-db.org?body=unsubscribe
Contact adminstrator:   mailto:ozone-users-owner@ozone-db.org
Read archived messages: http://www.ozone-db.org/
----------------------------------------------------------------------