public enum ErrorStrategy extends Enum<ErrorStrategy>
Enum Constant and Description |
---|
DEFAULT
使用默认值
若未设置默认值 则使用未匹配策略
|
EMPTY
使用空字符串
|
KEEP
保留占位符
|
THROW
抛出异常
|
Modifier and Type | Method and Description |
---|---|
static ErrorStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ErrorStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ErrorStrategy DEFAULT
若未设置默认值 则使用未匹配策略
public static final ErrorStrategy KEEP
public static final ErrorStrategy EMPTY
public static final ErrorStrategy THROW
public static ErrorStrategy[] values()
for (ErrorStrategy c : ErrorStrategy.values()) System.out.println(c);
public static ErrorStrategy 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 nullCopyright © 2024. All rights reserved.