public enum ErrorRoute extends Enum<ErrorRoute>
| Enum Constant and Description |
|---|
DEFAULT |
| Modifier and Type | Field and Description |
|---|---|
private String |
exceptionAttributeName |
private Route |
route |
| Modifier and Type | Method and Description |
|---|---|
String |
getExceptionAttrName()
Returns the name of the request attribute for this ErrorRoute, which will be accessible by calling
ServletRequest.getAttribute(String) method. |
Route |
getRoute()
Returns an
Route which is configured to route to an instance of ErrorTarget. |
private <T> T |
param(Class<T> type) |
static ErrorRoute |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ErrorRoute[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ErrorRoute DEFAULT
private final Route route
private final String exceptionAttributeName
public static ErrorRoute[] values()
for (ErrorRoute c : ErrorRoute.values()) System.out.println(c);
public static ErrorRoute valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic Route getRoute()
Route which is configured to route to an instance of ErrorTarget.Route provided as a fallback when a route has no explicit error route defined.public String getExceptionAttrName()
ServletRequest.getAttribute(String) method.private <T> T param(Class<T> type)
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.