I want to customize exceptions/errors thrown from my WCF Data Service, so clients get as much as possible information about what exactly went wrong/what is missing. Any thoughts on how this could be achieved?
A:
You need to create custom exceptions for this. Please read this post here: http://stackoverflow.com/questions/417428/why-create-custom-exceptions
Which language are you developing in?
If you need further guidance, please add some comments.
J Angwenyi
2010-08-17 11:04:40
I am developing in C#. However, the exceptions I throw from the service does not reach the clients consuming the service.
Martinfy
2010-08-17 11:17:32
A:
I don't think he wants to know how to throw / catch exceptions in .NET.
He probably want to get thoughts on how to tell the clients consuming a WCF Data Service that something (and what) went wrong when an exception is being thrown / caught at the server(service) side.
WCF Data Services uses HTTP request / response messages and you can't just throw an exception from the service to the client.
AssetMaster
2010-08-17 11:15:34