@Documented @Retention(value=RUNTIME) @Target(value=METHOD) @HttpMethodMapping public @interface Error
Modifier and Type | Optional Element and Description |
---|---|
java.lang.Class<? extends java.lang.Throwable> |
exception |
boolean |
global
Whether the error handler should be registered as a global error handler or just locally to the declaring
Controller . |
HttpStatus |
status |
java.lang.Class<? extends java.lang.Throwable> |
value |
public abstract HttpStatus status
HttpStatus
code to mappublic abstract boolean global
Controller
.