Skip to content

Conversation

marcospassos
Copy link
Collaborator

@marcospassos marcospassos commented Nov 15, 2019

This PR adds support for allowing unused @throws in implementations and fixes #17.

Implementations that do not throw all possible exceptions can narrow the set of possibilities by overriding the documentation block or declaring @throws void. However, there is a legitimate use case where it becomes necessary: one may want always to declare that a method might throw the exceptions stated in the prototype to make it future proof.

@marcospassos
Copy link
Collaborator Author

@pepakriz can you review it?

@pepakriz
Copy link
Owner

@marcospassos I really appreciate it and I want to promote it as the biggest improvement of the 0.9.x release.

@marcospassos
Copy link
Collaborator Author

Done and up to date with master

@marcospassos
Copy link
Collaborator Author

I've also added a few more tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

{@inheritdoc} is not used to detect exception annotation

2 participants