Package | Description |
---|---|
ai.yue.library.auth.service.client |
AuthService客户端
|
ai.yue.library.base.config.exception |
全局统一异常处理
|
ai.yue.library.base.crypto.controller.key.exchange | |
ai.yue.library.base.exception |
异常定义
|
ai.yue.library.base.view |
RESTful风格的最外层对象
|
ai.yue.library.base.webenv | |
ai.yue.library.data.jdbc.vo |
VO定义
|
ai.yue.library.web.config.exception |
全局统一异常处理
|
ai.yue.library.web.env | |
ai.yue.library.webflux.config.exception |
全局统一异常处理
|
ai.yue.library.webflux.env |
Modifier and Type | Method and Description |
---|---|
Result<?> |
User.logout()
登出
|
Modifier and Type | Method and Description |
---|---|
Result<?> |
AbstractExceptionHandler.apiVersionDeprecatedExceptionHandler(ApiVersionDeprecatedException e)
拦截API接口版本弃用异常-410
|
Result<?> |
AbstractExceptionHandler.attackExceptionHandler(AttackException e)
非法请求异常拦截-402
|
abstract Result<?> |
AbstractExceptionHandler.bindExceptionHandler(org.springframework.validation.BindException e)
Valid 验证异常统一处理-433
|
Result<?> |
AbstractExceptionHandler.clientFallbackExceptionHandler(ClientFallbackException e)
服务降级-507
|
Result<?> |
AbstractExceptionHandler.convertExceptionHandler(cn.hutool.core.convert.ConvertException e)
类型转换异常统一处理-509
|
Result<?> |
AbstractExceptionHandler.dbExceptionHandler(DbException e)
DB异常统一处理-506
|
Result<?> |
AbstractExceptionHandler.exceptionHandler(Exception e)
拦截所有未处理异常-500
|
Result<?> |
AbstractExceptionHandler.forbiddenExceptionHandler(ForbiddenException e)
无权限异常访问处理-403
|
Result<?> |
AbstractExceptionHandler.loginExceptionHandler(LoginException e)
拦截登录异常(User)-401
|
abstract Result<?> |
AbstractExceptionHandler.paramDecryptExceptionHandler(ParamDecryptException e)
解密异常统一处理-435
|
abstract Result<?> |
AbstractExceptionHandler.paramExceptionHandler(ParamException e)
参数效验未通过统一处理-433
|
abstract Result<?> |
AbstractExceptionHandler.paramVoidExceptionHandler()
参数效验为空统一处理-432
|
abstract Result<?> |
AbstractExceptionHandler.resultExceptionHandler(ResultException e)
异常结果处理-synchronized
|
abstract Result<?> |
AbstractExceptionHandler.validateExceptionHandler(cn.hutool.core.exceptions.ValidateException e)
验证异常统一处理-433
|
Modifier and Type | Method and Description |
---|---|
Result<?> |
KeyExchangeController.addAlias(String storageKey,
String storageKeyAlias)
添加存储key别名
|
Result<?> |
KeyExchangeController.getExchangeKey(String storageKey,
ExchangeKeyEnum exchangeKeyType,
String encryptedClientPublicKey)
获得交换密钥
|
Constructor and Description |
---|
ResultException(int businessId,
Result<?> result) |
ResultException(Result<?> result) |
Modifier and Type | Method and Description |
---|---|
static Result<?> |
R.attack()
非法访问-402
|
static Result<?> |
ResultInfo.attack()
Deprecated.
非法访问-402
|
static <T> Result<T> |
R.attack(T data)
非法访问-402
|
static <T> Result<T> |
ResultInfo.attack(T data)
Deprecated.
非法访问-402
|
static Result<?> |
R.clientFallback()
哎哟喂!网络开小差了,请稍后重试...-507
|
static Result<?> |
ResultInfo.clientFallback()
Deprecated.
哎哟喂!网络开小差了,请稍后重试...-507
|
static <T> Result<T> |
R.clientFallback(T data)
哎哟喂!网络开小差了,请稍后重试...-507
|
static Result<?> |
R.clientFallbackError()
哎哟喂!服务都被您挤爆了...-508
|
static Result<?> |
ResultInfo.clientFallbackError()
Deprecated.
哎哟喂!服务都被您挤爆了...-508
|
static <T> Result<T> |
R.clientFallbackError(T data)
哎哟喂!服务都被您挤爆了...-508
|
static Result<?> |
R.dataStructure()
数据结构异常-505
|
static Result<?> |
ResultInfo.dataStructure()
Deprecated.
数据结构异常-505
|
static Result<?> |
R.dataStructure(int expected,
int actual)
数据结构异常-505
|
static Result<?> |
ResultInfo.dataStructure(int expected,
int actual)
Deprecated.
数据结构异常-505
|
static Result<?> |
R.dbError()
数据结构异常,请检查相应数据结构一致性-506
|
static Result<?> |
ResultInfo.dbError()
Deprecated.
数据结构异常,请检查相应数据结构一致性-506
|
static Result<String> |
ResultInfo.dbError(String data)
Deprecated.
数据结构异常,请检查相应数据结构一致性-506
|
static <T> Result<T> |
R.dbError(T data)
数据结构异常,请检查相应数据结构一致性-506
|
static Result<?> |
ResultInfo.devCustomTypePrompt(String msg)
Deprecated.
开发者自定义类型提示-600
|
static <T> Result<?> |
ResultInfo.devCustomTypePrompt(String msg,
T data)
Deprecated.
开发者自定义类型提示-600
|
static Result<?> |
ResultInfo.error()
Deprecated.
请求错误-501
|
static <T> Result<T> |
ResultInfo.error(T data)
Deprecated.
请求错误-501
|
static Result<?> |
R.errorPrompt(String msg)
错误提示-600
|
static <T> Result<T> |
R.errorPrompt(String msg,
T data)
错误提示-600
|
static Result<?> |
R.errorPromptFormat(String msg,
Object... values)
错误提示-600
|
static Result<?> |
R.fileEmpty()
文件上传请求错误,获得文件信息为空,同时文件必须有明确的匹配类型(如文本类型:.txt)-310
|
static Result<?> |
ResultInfo.fileEmpty()
Deprecated.
文件上传请求错误,获得文件信息为空,同时文件必须有明确的匹配类型(如文本类型:.txt)-301
|
static Result<?> |
R.forbidden()
无权限-403
|
static Result<?> |
ResultInfo.forbidden()
Deprecated.
无权限-403
|
static Result<?> |
R.getResult(Throwable e) |
static Result<?> |
R.gone()
API接口版本弃用-410
|
static Result<?> |
ResultInfo.gone()
Deprecated.
API接口版本弃用-410
|
static Result<?> |
R.internalServerError()
服务器内部错误-500
|
static Result<?> |
ResultInfo.internalServerError()
Deprecated.
服务器内部错误-500
|
static <T> Result<T> |
R.internalServerError(T data)
服务器内部错误-500
|
static <T> Result<T> |
ResultInfo.internalServerError(T data)
Deprecated.
服务器内部错误-500
|
static Result<?> |
R.loggedIn()
会话未注销,无需登录-210
|
static Result<?> |
ResultInfo.loggedIn()
Deprecated.
会话未注销,无需登录-210
|
static <T> Result<T> |
R.methodNotAllowed(T data)
方法不允许(Method Not Allowed)-405
|
static Result<?> |
R.movedPermanently()
Moved Permanently-301
|
static Result<?> |
R.notFound()
Not Found-404
|
static Result<?> |
R.paramCheckNotPass()
参数校验未通过,请参照API核对后重试-433
|
static Result<?> |
ResultInfo.paramCheckNotPass()
Deprecated.
参数校验未通过,请参照API核对后重试-433
|
static Result<String> |
ResultInfo.paramCheckNotPass(String data)
Deprecated.
参数校验未通过,请参照API核对后重试-433
|
static <T> Result<T> |
R.paramCheckNotPass(T data)
参数校验未通过,请参照API核对后重试-433
|
static Result<?> |
R.paramDecryptError()
参数解密错误-435
|
static Result<?> |
ResultInfo.paramDecryptError()
Deprecated.
参数解密错误-435
|
static Result<?> |
R.paramValueInvalid()
参数校验未通过,无效的value-434
|
static Result<?> |
ResultInfo.paramValueInvalid()
Deprecated.
参数校验未通过,无效的value-434
|
static Result<String> |
ResultInfo.paramValueInvalid(String data)
Deprecated.
参数校验未通过,无效的value-434
|
static <T> Result<T> |
R.paramValueInvalid(T data)
参数校验未通过,无效的value-434
|
static Result<?> |
R.paramVoid()
参数为空-432
|
static Result<?> |
ResultInfo.paramVoid()
Deprecated.
参数为空-432
|
static Result<?> |
R.requestError()
请求错误-501
|
static <T> Result<T> |
R.requestError(T data)
请求错误-501
|
static Result<?> |
R.resourceAlreadyInvalid()
资源已失效-300
|
static Result<?> |
ResultInfo.resourceAlreadyInvalid()
Deprecated.
资源已失效-300
|
static Result<?> |
R.serviceUnavailable()
服务不可用-503
|
static Result<?> |
R.serviceUnavailable(LocalDateTime restoreTime)
服务不可用(停机维护)-503
|
static <T> Result<T> |
R.serviceUnavailable(T data)
服务不可用-503
|
static Result<?> |
R.success()
成功后调用,返回的data为null
|
static Result<?> |
ResultInfo.success()
Deprecated.
成功后调用,返回的data为null
|
static <T> Result<T> |
R.success(Integer code,
Long count,
T data)
成功后调用,分页查询
|
static <T> Result<T> |
ResultInfo.success(Integer code,
Long count,
T data)
Deprecated.
成功后调用,分页查询
|
static <T> Result<T> |
R.success(Long count,
T data)
成功后调用,分页查询
|
static <T> Result<T> |
ResultInfo.success(Long count,
T data)
Deprecated.
成功后调用,分页查询
|
static <T> Result<T> |
R.success(T data)
成功后调用,返回的data为一个对象
|
static <T> Result<T> |
ResultInfo.success(T data)
Deprecated.
成功后调用,返回的data为一个对象
|
static Result<?> |
R.tooManyRequests()
频繁请求限流-429
|
static Result<?> |
ResultInfo.tooManyRequests()
Deprecated.
频繁请求限流-429
|
static Result<String> |
ResultInfo.typeConvertError(String data)
Deprecated.
类型转换错误-509
|
static <T> Result<T> |
R.typeConvertError(T data)
类型转换错误-509
|
static Result<?> |
R.unauthorized()
未登录或登录已失效-401
|
static Result<?> |
ResultInfo.unauthorized()
Deprecated.
未登录或登录已失效-401
|
Modifier and Type | Method and Description |
---|---|
org.springframework.http.ResponseEntity<Result<?>> |
Result.castToResponseEntity() |
Modifier and Type | Method and Description |
---|---|
void |
WebEnv.resultResponse(Result<?> result)
|
Modifier and Type | Method and Description |
---|---|
Result<List<T>> |
PageVO.toResult()
将分页结果转换成最外层响应对象
|
Modifier and Type | Method and Description |
---|---|
Result<?> |
ResultExceptionHandler.bindExceptionHandler(org.springframework.validation.BindException e)
Valid 验证异常统一处理-433
|
Result<?> |
ResultExceptionHandler.httpRequestMethodNotSupportedExceptionHandler(org.springframework.web.HttpRequestMethodNotSupportedException e)
方法不允许(Method Not Allowed)-405
|
Result<?> |
ResultExceptionHandler.paramDecryptExceptionHandler(ParamDecryptException e)
解密异常统一处理-435
|
Result<?> |
ResultExceptionHandler.paramExceptionHandler(ParamException e)
参数效验未通过统一处理-433
|
Result<?> |
ResultExceptionHandler.paramVoidExceptionHandler()
参数效验为空统一处理-432
|
Result<?> |
ResultExceptionHandler.resultExceptionHandler(ResultException e)
异常结果处理-synchronized
|
Result<?> |
ResultExceptionHandler.validateExceptionHandler(cn.hutool.core.exceptions.ValidateException e)
验证异常统一处理-433
|
Modifier and Type | Method and Description |
---|---|
void |
WebMvcEnv.resultResponse(Result<?> result) |
Modifier and Type | Method and Description |
---|---|
Result<?> |
ResultExceptionHandler.bindExceptionHandler(org.springframework.validation.BindException e)
Valid 验证异常统一处理-433
|
Result<?> |
ResultExceptionHandler.paramDecryptExceptionHandler(ParamDecryptException e)
解密异常统一处理-435
|
Result<?> |
ResultExceptionHandler.paramExceptionHandler(ParamException e)
参数效验未通过统一处理-433
|
Result<?> |
ResultExceptionHandler.paramVoidExceptionHandler()
参数效验为空统一处理-432
|
Result<?> |
ResultExceptionHandler.resultExceptionHandler(ResultException e)
异常结果处理-synchronized
|
Result<?> |
ResultExceptionHandler.validateExceptionHandler(cn.hutool.core.exceptions.ValidateException e)
验证异常统一处理-433
|
Modifier and Type | Method and Description |
---|---|
void |
WebFluxEnv.resultResponse(Result<?> result) |
Copyright © 2022 Pivotal Software, Inc.. All rights reserved.