水库站点详情带实时水位列表修改
parent
cc5f594cbb
commit
a9b7b8fdcf
|
|
@ -0,0 +1,25 @@
|
||||||
|
package com.gunshi.project.xyt.config;
|
||||||
|
|
||||||
|
import com.gunshi.core.result.R;
|
||||||
|
import com.gunshi.core.result.exception.ressolver.E500UnknownExceptionResolver;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.springframework.core.annotation.Order;
|
||||||
|
import org.springframework.web.bind.annotation.RestControllerAdvice;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Description:
|
||||||
|
* Created by XuSan on 2024/7/10.
|
||||||
|
*
|
||||||
|
* @author XuSan
|
||||||
|
* @version 1.0
|
||||||
|
*/
|
||||||
|
@RestControllerAdvice
|
||||||
|
@Order
|
||||||
|
@Slf4j
|
||||||
|
public class MyE500UnknownExceptionResolver extends E500UnknownExceptionResolver {
|
||||||
|
|
||||||
|
public R<String> resolve(Exception exception) {
|
||||||
|
log.error("系统未知异常,错误信息: " + exception.getMessage(), exception);
|
||||||
|
return R.error(500, "系统未知异常,错误信息: " + exception.getMessage());
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue