Hi, 
I'm confused on exception handling inside unitofwork.
1. The following [Exception e] will never reached? because when I found 
duplicated entity, the exception will not triggered until uow.complete(). 
However, after uow.complete(), it will throw an exception for outter scope 
handler. Is this understanding correct?
How to handling this kind of exception.
2. What does Usecase mean here. When I have Usecases in the same name more than 
one time, it doesn't throw any exception? 


public void test() throws Exception {
UnitOfWork uow = module.newUnitOfWork(newUsecase("blabla"));
try {
   entity = uow.newEntity(...);
} catch (Exception e) {
   // never reached????
}
uow.complete();
}


Thanks a lot.

Reply via email to