跳过导航链接
C E G H L 

C

cn.sunxiansheng.exception - 程序包 cn.sunxiansheng.exception
 
cn.sunxiansheng.exception.config - 程序包 cn.sunxiansheng.exception.config
 
CustomException - cn.sunxiansheng.exception中的异常错误
Description: 自定义异常类
CustomException() - 异常错误 的构造器cn.sunxiansheng.exception.CustomException
无参构造
CustomException(Integer, String) - 异常错误 的构造器cn.sunxiansheng.exception.CustomException
通过错误码和错误信息构造异常
CustomException(RespBeanEnum) - 异常错误 的构造器cn.sunxiansheng.exception.CustomException
通过枚举类构造异常

E

ExceptionAutoConfiguration - cn.sunxiansheng.exception.config中的类
Description: 异常自动配置类
ExceptionAutoConfiguration() - 类 的构造器cn.sunxiansheng.exception.config.ExceptionAutoConfiguration
 

G

getErrorCode() - 异常错误 中的方法cn.sunxiansheng.exception.CustomException
 
getErrorMessage() - 异常错误 中的方法cn.sunxiansheng.exception.CustomException
 
getMessage() - 异常错误 中的方法cn.sunxiansheng.exception.CustomException
重写getMessage方法,返回自定义的异常信息
globalExceptionHandler() - 类 中的方法cn.sunxiansheng.exception.config.ExceptionAutoConfiguration
条件注入全局异常处理器
GlobalExceptionHandler - cn.sunxiansheng.exception中的类
全局异常处理器
GlobalExceptionHandler() - 类 的构造器cn.sunxiansheng.exception.GlobalExceptionHandler
 

H

handleBindException(BindException) - 类 中的方法cn.sunxiansheng.exception.GlobalExceptionHandler
处理表单或查询参数校验失败 (BindException)
handleCustomException(CustomException) - 类 中的方法cn.sunxiansheng.exception.GlobalExceptionHandler
处理自定义业务异常 (CustomException)
handleException(Exception) - 类 中的方法cn.sunxiansheng.exception.GlobalExceptionHandler
捕获所有未处理的系统异常
handleMethodArgumentNotValidException(MethodArgumentNotValidException) - 类 中的方法cn.sunxiansheng.exception.GlobalExceptionHandler
处理 JSON 请求体参数校验失败JSR303 (MethodArgumentNotValidException)

L

logConfigSuccess() - 类 中的方法cn.sunxiansheng.exception.config.ExceptionAutoConfiguration
自动配置成功日志
C E G H L 
跳过导航链接

Copyright © 2025. All rights reserved.