Package org.apache.wicket.settings
Enum ExceptionSettings.NotRenderableErrorStrategy
- java.lang.Object
-
- java.lang.Enum<ExceptionSettings.NotRenderableErrorStrategy>
-
- org.apache.wicket.settings.ExceptionSettings.NotRenderableErrorStrategy
-
- All Implemented Interfaces:
Serializable
,Comparable<ExceptionSettings.NotRenderableErrorStrategy>
- Enclosing class:
- ExceptionSettings
public static enum ExceptionSettings.NotRenderableErrorStrategy extends Enum<ExceptionSettings.NotRenderableErrorStrategy>
A strategy defining what to do when a component that will not render its markup tag (because ofsetRenderBodyOnly(true)
or used with <wicket:xyz>) is also asked to output a markupid
orplaceholder tag
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LOG_WARNING
Log a message with levelWARNING
THROW_EXCEPTION
Throw a runtime exception
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ExceptionSettings.NotRenderableErrorStrategy
valueOf(String name)
Returns the enum constant of this type with the specified name.static ExceptionSettings.NotRenderableErrorStrategy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LOG_WARNING
public static final ExceptionSettings.NotRenderableErrorStrategy LOG_WARNING
Log a message with levelWARNING
-
THROW_EXCEPTION
public static final ExceptionSettings.NotRenderableErrorStrategy THROW_EXCEPTION
Throw a runtime exception
-
-
Method Detail
-
values
public static ExceptionSettings.NotRenderableErrorStrategy[] 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.NotRenderableErrorStrategy c : ExceptionSettings.NotRenderableErrorStrategy.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.NotRenderableErrorStrategy 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
-
-