|
|
@@ -1,4 +1,3 @@
|
|
|
-// base/src/main/java/com/base/exception/GlobalExceptionHandler.java
|
|
|
package com.base.exception;
|
|
|
|
|
|
import com.base.utils.Result;
|
|
|
@@ -17,7 +16,6 @@ public class GlobalExceptionHandler {
|
|
|
@ExceptionHandler(WyMusicException.class)
|
|
|
@ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR)
|
|
|
public Result<String> customException(WyMusicException e) {
|
|
|
- log.error("【业务异常】{}", e.getErrMessage(), e);
|
|
|
return Result.fail(e.getErrMessage());
|
|
|
}
|
|
|
|
|
|
@@ -25,7 +23,6 @@ public class GlobalExceptionHandler {
|
|
|
@ExceptionHandler(Exception.class)
|
|
|
@ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR)
|
|
|
public Result<String> exception(Exception e) {
|
|
|
- log.error("【系统异常】{}", e.getMessage(), e);
|
|
|
return Result.fail( e.getMessage());
|
|
|
}
|
|
|
}
|