exceptions not showing--GenericEntityException

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

exceptions not showing--GenericEntityException

BJ Freeman
have some code

   public static String somefoo(HttpServletRequest request,
            HttpServletResponse response) {
 callfoo();
}

callfoo()
{
            try {
                userLogin = delegator.findByPrimaryKey("UserLogin", UtilMisc
                        .toMap("userLoginId", "someloginID"));
            } catch (GenericEntityException e) {
                Debug
                        .logError(
                                e.getMessage()+
                                "Unable to find login in UserLogin;
Check seed data",module);
            }
 }

when the someloginID is not found should get and excepton
but logs says
Exception error in somefoo
not
Exception error in callfoo
nor does the debug.logerror show up.
is this a problem with the GenericEntityException


Reply | Threaded
Open this post in threaded view
|

Re: exceptions not showing--GenericEntityException

BJ Freeman
I bring this up because in the ver3.0 code under 1.4 this code worked.
so I am trying to find out, what in 1.5 or refactoring might be causing
this.


BJ Freeman sent the following on 9/6/2008 2:53 AM:

> have some code
>
>    public static String somefoo(HttpServletRequest request,
>             HttpServletResponse response) {
>  callfoo();
> }
>
> callfoo()
> {
>             try {
>                 userLogin = delegator.findByPrimaryKey("UserLogin", UtilMisc
>                         .toMap("userLoginId", "someloginID"));
>             } catch (GenericEntityException e) {
>                 Debug
>                         .logError(
>                                 e.getMessage()+
>                                 "Unable to find login in UserLogin;
> Check seed data",module);
>             }
>  }
>
> when the someloginID is not found should get and excepton
> but logs says
> Exception error in somefoo
> not
> Exception error in callfoo
> nor does the debug.logerror show up.
> is this a problem with the GenericEntityException
>
>
>
>
>