@Documented @Retention(value=RUNTIME) @Target(value=METHOD) @HttpMethodMapping public @interface Error
Modifier and Type | Optional Element and Description |
---|---|
Class<? extends 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 |
Class<? extends Throwable> |
value |
public abstract HttpStatus status
HttpStatus
code to mappublic abstract boolean global
Controller
.