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

[Fwd: how to detect failed login?]





Tim Brown wrote:

> I have throw {}'s around every line of code I have access to regarding
> this error.  indexImpl_Proxy.getPoints() is throwing the exception.  I
> have a throw{} clause around indexImpl.getPoints() to no effect.  I also
> have a throw{} around the code that calls this to no effect.  That code
> was included earlier.  The problem seems to be that the Proxy object
> generated from my object does not keep the throw{} clause I had put in
> there.
>
> Either way, I strongly favor a test() function.  At least then I could
> call it after an open() and know that I have a connection.  That seems
> like a base minimum of functionality, then we can debate the additional
> ways we can trap permissions errors.  And we should come up with
> something because all you have to do is forget to create your objects
> with AllRead|AllLock (or appropriate) and it will bomb on a simple
> objectForName().


I have throw {}'s around every line of code I have access to regarding
this error.  indexImpl_Proxy.getPoints() is throwing the exception.  I
have a throw{} clause around indexImpl.getPoints() to no effect.  I also
have a throw{} around the code that calls this to no effect.  That code
was included earlier.  The problem seems to be that the Proxy object
generated from my object does not keep the throw{} clause I had put in
there.

Either way, I strongly favor a test() function.  At least then I could
call it after an open() and know that I have a connection.  That seems
like a base minimum of functionality, then we can debate the additional
ways we can trap permissions errors.  And we should come up with
something because all you have to do is forget to create your objects
with AllRead|AllLock (or appropriate) and it will bomb on a simple
objectForName().