@ ExceptionHandler ( Exception . class ) private DataError handleException ( HttpServletRequest request , HttpServletResponse response , Exception e ) { return faultAgent . handleException ( request , response , e ) ; }
Handling exceptions in general for REST responses