|
|
@@ -39,7 +39,7 @@ public class ExceptionHandlerAdvice {
|
|
|
* @return
|
|
|
*/
|
|
|
@ExceptionHandler({VisibleError.class, IllegalArgumentException.class})
|
|
|
- public ResponseEntity<ModelMap> handleVisibleError(VisibleError ex) {
|
|
|
+ public ResponseEntity<ModelMap> handleVisibleError(RuntimeException ex) {
|
|
|
HttpHeaders headers = new HttpHeaders();
|
|
|
headers.add("Content-Type", "application/json; charset=utf-8");
|
|
|
return new ResponseEntity<ModelMap>(error(ex.getMessage()), headers, HttpStatus.OK);
|