Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
microsoft.public.dotnet.framework.remoting
Catch exceptions at low level layer client side
Robin Prosch via .NET 247
6/5/2004 7:23:00 PM
Hi,
I have a design issue concerning remoting. I have a client/server app, in which it is possible to kick certain users out of the server after they logged in (with the client app). With each method call from a client the server checks whether the user is still valid (logged in) and if not, the server throws an InvalidUserException (self-made). Everything works fine, I receive the exception perfectly in the client app. Problem is that each server invocation from the client app requires a try catch block to see if a InvalidUserException is thrown by the server. I would like to catch an InvalidUserException at a lower level, so that I don't have to use try/catch blocks at each invocation. I think the best solution is to insert another sink, where I can determine whether a client gets an InvalidUserException thrown, but what's the common practice for this issue? It would be nice if i can catch the exception at a lower level, so I don't have to go through all the layers before the exception gets caught......
Thanx in advance...
-----------------------
Posted by a user from .NET 247 (
http://www.dotn...
)
<Id>r5xwNOeqWkOWQqOmpB8y8Q==</Id>
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Catch exceptions at low level layer client side
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password