Hi,
I'm decorating my C# code with comments so I can produce HTML help files.
I often declare and document interfaces. But classes implementing those interfaces can throw specific exceptions depending on the implementation.
Sometimes, the client is only aware of the interfaces he's using. Should I document my interfaces by adding the possible exceptions that could be thrown by its implementors?
Should I create/document custom exceptions so that interfaces implementors throw these instead of those of the framework?
I hope this is clear!
Thanks
EDIT jan 4th 2010: I decided to write a blog post about this and custom exceptions in .NET at http://blog.mikecouturier.com/2010/01/creating-custom-exceptions-in-net-right.html