Annotation Interface 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
Modifier and TypeRequired ElementDescriptionClass<? extends ExceptionHandlerFunction>
ExceptionHandlerFunction
implementation type.
-
Element Details
-
value
Class<? extends ExceptionHandlerFunction> valueExceptionHandlerFunction
implementation type. The specified class must have an accessible default constructor.
-