I have a situation where I want to be able to distinguish between different types of errors within a web service. In an API this would usaully be a separate exception for each, does this mean I should have multiple fault contracts in WCF?
Is this the preferred approach, it seems the OO way to do it. Someone at my work suggested error codes but I'm starting to think it seems counter-intuative if you are sending an exception back.
Has anyone ever been in a similar situation, if so, what design decisions did you undertake and reasons for them?
Thanks, any help would be greatly appreciated. Jamie