Commit eda6325c authored by neo's avatar neo

[DEv] add exception handler for api exceptio

parent 7e7cd834
......@@ -17,7 +17,8 @@ public class AtmsExceptionHandler extends ResponseEntityExceptionHandler {
@ExceptionHandler(value = {
ApplicationException.class,
ServiceException.class
ServiceException.class,
ApiException.class
})
protected ResponseEntity<Object> handleExceptions(Exception ex) throws ServiceException {
LOGGER.error("Rest Exception!", ex);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment