Package org.apache.wicket.settings
Enum ExceptionSettings.AjaxErrorStrategy
- java.lang.Object
-
- java.lang.Enum<ExceptionSettings.AjaxErrorStrategy>
-
- org.apache.wicket.settings.ExceptionSettings.AjaxErrorStrategy
-
- All Implemented Interfaces:
Serializable
,Comparable<ExceptionSettings.AjaxErrorStrategy>
- Enclosing class:
- ExceptionSettings
public static enum ExceptionSettings.AjaxErrorStrategy extends Enum<ExceptionSettings.AjaxErrorStrategy>
How to handle errors while processing an Ajax request- Author:
- igor
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INVOKE_FAILURE_HANDLER
invoke client side failure handlerREDIRECT_TO_ERROR_PAGE
redirect to error page, just like a normal requset
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ExceptionSettings.AjaxErrorStrategy
valueOf(String name)
Returns the enum constant of this type with the specified name.static ExceptionSettings.AjaxErrorStrategy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
REDIRECT_TO_ERROR_PAGE
public static final ExceptionSettings.AjaxErrorStrategy REDIRECT_TO_ERROR_PAGE
redirect to error page, just like a normal requset
-
INVOKE_FAILURE_HANDLER
public static final ExceptionSettings.AjaxErrorStrategy INVOKE_FAILURE_HANDLER
invoke client side failure handler
-
-
Method Detail
-
values
public static ExceptionSettings.AjaxErrorStrategy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ExceptionSettings.AjaxErrorStrategy c : ExceptionSettings.AjaxErrorStrategy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ExceptionSettings.AjaxErrorStrategy valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-