ranjan-rk/restfiddle — pull request #16 by stmishra (2014-06-06 12:52:42+00:00)
Title: Basic API Exception Handling

This will allow spring mvc to throw JSON errors in case of an API failure.

We should add some custom exceptions in ApiExceptionControllerAdvice. As a demonstration, I have thrown an ApiException from ApiController.
We ideally should have a handler for BusinessExceptions too, and an exception class for Business Exception - we'll build upon this when required.
Code formatting as per the formatter.