org.apache.wicket.settings
Enum IExceptionSettings.AjaxErrorStrategy

java.lang.Object
  extended by java.lang.Enum<IExceptionSettings.AjaxErrorStrategy>
      extended by org.apache.wicket.settings.IExceptionSettings.AjaxErrorStrategy
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<IExceptionSettings.AjaxErrorStrategy>
Enclosing interface:
IExceptionSettings

public static enum IExceptionSettings.AjaxErrorStrategy
extends java.lang.Enum<IExceptionSettings.AjaxErrorStrategy>

How to handle errors while processing an Ajax request

Author:
igor

Enum Constant Summary
INVOKE_FAILURE_HANDLER
          invoke client side failure handler
REDIRECT_TO_ERROR_PAGE
          redirect to error page, just like a normal requset
 
Method Summary
static IExceptionSettings.AjaxErrorStrategy valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static IExceptionSettings.AjaxErrorStrategy[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

REDIRECT_TO_ERROR_PAGE

public static final IExceptionSettings.AjaxErrorStrategy REDIRECT_TO_ERROR_PAGE
redirect to error page, just like a normal requset


INVOKE_FAILURE_HANDLER

public static final IExceptionSettings.AjaxErrorStrategy INVOKE_FAILURE_HANDLER
invoke client side failure handler

Method Detail

values

public static IExceptionSettings.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 (IExceptionSettings.AjaxErrorStrategy c : IExceptionSettings.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 IExceptionSettings.AjaxErrorStrategy valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.