L
Lachlan James
Hi,
I was just wondering how to best throw and catch
exceptions in web services.
I have created a web service that throws 3 or 4 different
types of exceptions. Depending on which exception is
thrown I would like the client to be able to act
accordingly, but how can the client catch an exception
that doesn't exist on their system?
Is there a better way to inform consuming code of
different errors that are occuring. I can't help but feel
if ms included the throws keyword like java we wouldn't
have this problem because the consuming code that is
generated would know about which exceptions a particular
service could throw.
Thanks,
Lachlan James
I was just wondering how to best throw and catch
exceptions in web services.
I have created a web service that throws 3 or 4 different
types of exceptions. Depending on which exception is
thrown I would like the client to be able to act
accordingly, but how can the client catch an exception
that doesn't exist on their system?
Is there a better way to inform consuming code of
different errors that are occuring. I can't help but feel
if ms included the throws keyword like java we wouldn't
have this problem because the consuming code that is
generated would know about which exceptions a particular
service could throw.
Thanks,
Lachlan James