Annotation Interface Error
@Documented
@Retention(RUNTIME)
@Target(METHOD)
@HttpMethodMapping
@Inherited
public @interface Error
Annotation that can be applied to method to map it to an error route.
- Since:
- 1.0
- Author:
- Graeme Rocher
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanWhether the error handler should be registered as a global error handler or just locally to the declaringController.
-
Element Details
-
value
-
exception
-
status
-
global
boolean globalWhether the error handler should be registered as a global error handler or just locally to the declaringController.- Returns:
- True if it should be global
- Default:
false
-