lars-raaum / kom-inn

Kom inn repository
3 stars 6 forks source link

Use Exceptions and error handler to generate the error responses #59

Closed alkemann closed 7 years ago

alkemann commented 7 years ago

This trims down the controllers and as they becomes less verbose they are easier to read, understand and maintain.

Two exceptions types were created. One for API consumer errors (400 bad requests or 404 not found types) and another for service errors (500, when we miss configurations etc).