As you know, it\'s recomended handle exceptions using FaultException with standard WCF service to hide exception details. That\'s fine but i\'m having problem with WCF Ria servi
Code example:
[EnableClientAccess()]
public class YourDomainService : DomainService
{
protected override void OnError(DomainServiceErrorInfo errorInfo)
{
base.OnError(errorInfo);
customErrorHandler(errorInfo.Error);
}
private void customErrorHandler(Exception ex)
{
DomainServiceContext sc = this.ServiceContext;
//Write here your custom logic handling exceptions
}
}