JavaScript is disabled on your browser.
Skip navigation links
Overview
Package
Class
Use
Tree
Index
Help
Summary:
Field |
Optional
|
Required
Detail:
Field |
Element
SEARCH:
Package
com.feiniaojin.gracefulresponse.api
Annotation Interface ExceptionAliasFor
@Target
(
TYPE
)
@Retention
(
RUNTIME
)
@Inherited
public @interface
ExceptionAliasFor
异常映射别名,把某个异常设置为外部异常的别名,以便自定义错误码和提示信息
Since:
0.3
Version:
0.3
Author:
Yujie
Required Element Summary
Required Elements
Modifier and Type
Required Element
Description
Class
<? extends
Throwable
>[]
aliasFor
作为某些异常的别名
Optional Element Summary
Optional Elements
Modifier and Type
Optional Element
Description
String
code
异常对应的错误码.
String
msg
异常信息.
Element Details
aliasFor
Class
<? extends
Throwable
>[]
aliasFor
作为某些异常的别名
Returns:
code
String
code
异常对应的错误码.
Returns:
异常对应的错误码
Default:
"1"
msg
String
msg
异常信息.
Returns:
异常对应的提示信息
Default:
"error"