Did no phrase it correctly, it was not swallowing, but executing
finally clause in which code would raise a different exception, hence
my confusion.

On Dec 8, 10:53 am, "Ayende Rahien" <[email protected]> wrote:
> this doesn't swallow any errors.
>
> On Mon, Dec 8, 2008 at 11:48 AM, epitka <[email protected]> wrote:
>
> > I have created a PostLoadEventListener the throws an error but I
> > cannot catch that error since
> > this swallows the error. Is this an error, oversight or something
> > else?
>
> > private IList DoQueryAndInitializeNonLazyCollections(
> >                        ISessionImplementor session,
> >                        QueryParameters queryParameters,
> >                        bool returnProxies)
> >                {
> >                        IPersistenceContext persistenceContext =
> > session.PersistenceContext;
>
> >                        persistenceContext.BeforeLoad();
> >                        IList result;
> >                        try
> >                        {
> >                                result = DoQuery(session, queryParameters,
> > returnProxies);
> >                        }
> >                        finally
> >                        {
> >                                persistenceContext.AfterLoad();
> >                        }
> >                        persistenceContext.InitializeNonLazyCollections();
>
> >                        return result;
> >                }
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to