Annotation Type ErrorCode
-
@Target({TYPE,METHOD}) @Retention(RUNTIME) @Documented public @interface ErrorCode
Marks an exception class or method with an error codevalue()
of the application.The error code is applied to the HTTP response.
- Author:
- Christian Bremer
-
-
Element Detail
-
value
String value
The error code of the exception in addition to the HTTP status code. The default value isErrorCodeAware.NO_ERROR_CODE_VALUE
.- Returns:
- the error code
- Default:
- "UNSPECIFIED"
-
-