水库站点详情带实时水位列表修改

master
徐杰盟 2024-07-22 11:11:24 +08:00
parent cc5f594cbb
commit a9b7b8fdcf
1 changed files with 25 additions and 0 deletions

View File

@ -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());
}
}