Annotation Interface EnableRestExceptionHandler
@Retention(RUNTIME)
@Target(TYPE)
@Import(ExceptionHandlingAdvice.class)
@Documented
public @interface EnableRestExceptionHandler
A convenience annotation that creates a bean annotated with
@RestControllerAdvice to globally handle
controller exceptions.
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: