|
@@ -1,5 +1,6 @@
|
|
|
package com.qmth.boot.api.exception;
|
|
|
|
|
|
+import com.qmth.boot.core.exception.ParameterException;
|
|
|
import com.qmth.boot.core.exception.ReentrantException;
|
|
|
import com.qmth.boot.core.exception.StatusException;
|
|
|
import com.qmth.boot.core.exception.UnauthorizedException;
|
|
@@ -27,6 +28,12 @@ public class GlobalExceptionHandler extends ResponseEntityExceptionHandler {
|
|
|
return new ResponseEntity<>(e.responseEntity(), new HttpHeaders(), e.getStatus());
|
|
|
}
|
|
|
|
|
|
+ @ExceptionHandler(ParameterException.class)
|
|
|
+ public ResponseEntity<Object> handleParameterException(ParameterException e) {
|
|
|
+ //log.error(e.getMessage(), e);
|
|
|
+ return handleApiException(DefaultExceptionEnum.REQUEST_PARAMETER_INVALID.exception(e));
|
|
|
+ }
|
|
|
+
|
|
|
@ExceptionHandler(UnauthorizedException.class)
|
|
|
public ResponseEntity<Object> handleUnauthorizedException(UnauthorizedException e) {
|
|
|
//log.error(e.getMessage(), e);
|