Throwing exceptions from .NET web service

I have a set of web services generated using the [WebMethod] attribute. Is it considered "good practice" to throw ArgumentException from such a method if its arguments aren't properly specified (and no sensible defaults could be used)? If so, should this exception be caught and re-thrown in order to log it both on the server and the client?

5
задан Chris Cooper 9 February 2011 в 09:32
поделиться