public enum MessagePolicy extends java.lang.Enum<MessagePolicy>
| Enum Constant and Description |
|---|
FAIL
Throws an IOException.
|
IGNORE
Does nothing.
|
WARN
Logs through logging system as a WARNING.
|
| Modifier and Type | Method and Description |
|---|---|
static MessagePolicy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MessagePolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MessagePolicy IGNORE
public static final MessagePolicy WARN
public static final MessagePolicy FAIL
public static MessagePolicy[] values()
for (MessagePolicy c : MessagePolicy.values()) System.out.println(c);
public static MessagePolicy valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null