diff --git a/commons/web-common/src/main/java/com/schbrain/common/web/exception/GlobalExceptionHandler.java b/commons/web-common/src/main/java/com/schbrain/common/web/exception/GlobalExceptionHandler.java index 05d0c1735daea0fbbad120354a916582f76eaa77..ef2420975dcbe384d5c35a78d239afe33006b697 100644 --- a/commons/web-common/src/main/java/com/schbrain/common/web/exception/GlobalExceptionHandler.java +++ b/commons/web-common/src/main/java/com/schbrain/common/web/exception/GlobalExceptionHandler.java @@ -52,7 +52,6 @@ public class GlobalExceptionHandler { } /************************************* Base Exception Handing *************************************/ - @ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR) @ExceptionHandler(BaseException.class) public Object handleBaseException(BaseException ex) { logError(ex); @@ -60,19 +59,16 @@ public class GlobalExceptionHandler { } /************************************* Common Exception Handing *************************************/ - @ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR) @ExceptionHandler(Throwable.class) public Object handleAll(Throwable ex) { return loggingThenBuildResponse(ex, SERVER_ERROR); } - @ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR) @ExceptionHandler(NullPointerException.class) public Object handleNullPointerException(NullPointerException ex) { return loggingThenBuildResponse(ex, SERVER_ERROR); } - @ResponseStatus(HttpStatus.BAD_REQUEST) @ExceptionHandler(IllegalArgumentException.class) public Object handleIllegalArgumentException(IllegalArgumentException ex) { return loggingThenBuildResponse(ex, SERVER_ERROR);