异常输出
This commit is contained in:
@@ -124,7 +124,7 @@ public class CzgControllerAdvice {
|
|||||||
*/
|
*/
|
||||||
@ExceptionHandler(ValidateException.class)
|
@ExceptionHandler(ValidateException.class)
|
||||||
public CzgResult<Object> handleValidateException(ValidateException ex) {
|
public CzgResult<Object> handleValidateException(ValidateException ex) {
|
||||||
setErrorLog(ex);
|
log.error(ex.getMessage());
|
||||||
return CzgResult.failure(CzgRespCode.PARAM_ERROR.getCode(), ex.getMessage());
|
return CzgResult.failure(CzgRespCode.PARAM_ERROR.getCode(), ex.getMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user