Annotation Interface RestExceptionHandler


@Retention(RUNTIME) @Target(TYPE) @Import(PerControllerExceptionHandlingAdvice.class) @Documented public @interface RestExceptionHandler
A convenience annotation that creates a bean annotated with @RestControllerAdvice that will only handle exceptions in controllers annotated with this annotation.

Types that carry this annotation are treated as controller advice where @ExceptionHandler methods use @ResponseBody of type ApiError.

Since:
1.0
Author:
Ilya Nikolaev
See Also: