I am using the ParameterValidation aspect to validate the parameters provided to my WCF methods. This is working great.
I am also using the ExceptionHandling aspect to wrap any exceptions that occur in my service methods in a WCF fault. To keep the code clean, I have a custom class that subclasses FaultException<ExceptionDetail> so I simply pass the exception into the constructor and the ExceptionDetail is automatically created and populated for me. This is working great as well.
Unfortunately, the BCL implementation of FaultException and ExceptionDetail have no knowledge of the ValidationErrors property on the ValidationException so I lose visibility into the actual errors. How can I best get the errors included in my FaultException so I can report why validation failed in the client interface?


Reply With Quote
