Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add throws Exception to generated controller endpoints #307

Open
danekja opened this issue Feb 10, 2020 · 2 comments
Open

Add throws Exception to generated controller endpoints #307

danekja opened this issue Feb 10, 2020 · 2 comments

Comments

@danekja
Copy link

danekja commented Feb 10, 2020

We would like to add throws Exception to controller methods in order to take advantage of Spring´s @ExceptionHandler and @ControllerAdvice error handling. Possibly with rule configuration flag to make the feature optional.

Im happy to implement the feature, the question is: is this project still maintained or are we better off with making own fork?

@stojsavljevic
Copy link
Contributor

Hi, thanks for the question.

Unfortunately, this project is not actively maintained any more.
But I have to ask - why don't you use unchecked exceptions? They won the battle over the checked exceptions :)

@danekja
Copy link
Author

danekja commented Feb 10, 2020

Legacy libraries mostly. And some shared libraries for use by 3rd party in environment where writing exception contract in documentation does not provide desired results (i.e. 3rd party developers dont care about error handling).

Anyway thanks for response. Shame, it is a nice plugin :).

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

No branches or pull requests

2 participants