Throwing Remote Exceptions RRS feed

  • Question

  • Hi everyone, I know there is a few threads about this but I'de like someone give me an concrete example:

    My client makes a request to server using try catch:






    catch (Exception ex)



    in server side I throw an Exception


    void askServiceSomething()


    throw new Exception("Hello");


    but since the server doesn't have a try catch, this exception will trigger an error on server side. The client catches another type of exception, nothing to do with the one I threw ("Hello").

    My questions are:

    What kind of Exception do I have to throw in the server?

    What kind of Exception do I have to catch at client side?

    Can anyone give me a simple code example?

    Thanx in advance
    Friday, October 12, 2007 3:13 PM


All replies