| 程序包 | 说明 |
|---|---|
| run.iget.framework.common.handler | |
| run.iget.framework.common.resp |
| 限定符和类型 | 方法和说明 |
|---|---|
ResultResp<String> |
GlobalExceptionHandler.bindException(org.springframework.validation.BindException ex)
SpringMVC参数绑定,Validator校验不正确
|
ResultResp<String> |
GlobalExceptionHandler.handleException(BusinessException ex)
处理自定义异常
|
ResultResp<String> |
GlobalExceptionHandler.handleException(Exception ex) |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> ResultResp<T> |
ResultResp.error() |
static <T> ResultResp<T> |
ResultResp.error(BaseResultEnum errorCode) |
static <T> ResultResp<T> |
ResultResp.error(String msg) |
static <T> ResultResp<T> |
ResultResp.error(String code,
String msg) |
static <T> ResultResp<T> |
ResultResp.of(BaseResultEnum moduleEnum,
T data) |
static <T> ResultResp<T> |
ResultResp.ok() |
static <T> ResultResp<T> |
ResultResp.ok(T data) |
Copyright © 2023. All rights reserved.