Annotation Type ExceptionHandler
@Repeatable(ExceptionHandlers.class) @Retention(RUNTIME) @Target({TYPE,METHOD}) public @interface ExceptionHandler
Specifies an
ExceptionHandlerFunction
class which handles exceptions throwing from an
annotated service method.-
Required Element Summary
Required Elements Modifier and Type Required Element Description Class<? extends ExceptionHandlerFunction>
value
ExceptionHandlerFunction
implementation type.
-
Element Details
-
value
Class<? extends ExceptionHandlerFunction> valueExceptionHandlerFunction
implementation type. The specified class must have an accessible default constructor.
-