phoenixnap / springmvc-raml-plugin

Spring MVC - RAML Spec Synchroniser Plugin. A Maven plugin designed to Generate Server & Client code in Spring from a RAML API descriptor and conversely, a RAML API document from the SpringMVC Server implementation.
Apache License 2.0
136 stars 84 forks source link

Add throws Exception to generated controller endpoints #307

Open danekja opened 4 years ago

danekja commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 :).