How to document all exceptions a function might throw?
Fundamentally, what you ask is impossible in virtually every real-world situation. There are two parts to documenting thrown exceptions. 1) The easy bit. Document the exceptions that are directly thrown in your method. You can do this by hand, but it’s pretty laborious and if you fail to keep the docs in sync wiht the … Read more