@Deprecated public static enum MessageFormatter.ErrorHandlingBehavior extends Enum<MessageFormatter.ErrorHandlingBehavior>
Parsing errors and data model errors always throw and will not be affected by this setting.
But resolution errors and formatting errors will either try to fallback (if possible) or throw,
depending on this setting.
Used in conjunction with the
MessageFormatter.Builder#setErrorHandlingBehavior(ErrorHandlingBehavior)
method.
Enum Constant and Description |
---|
BEST_EFFORT
Deprecated.
This API is for technology preview only.
|
STRICT
Deprecated.
This API is for technology preview only.
|
Modifier and Type | Method and Description |
---|---|
static MessageFormatter.ErrorHandlingBehavior |
valueOf(String name)
Deprecated.
Returns the enum constant of this type with the specified name.
|
static MessageFormatter.ErrorHandlingBehavior[] |
values()
Deprecated.
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Deprecated public static final MessageFormatter.ErrorHandlingBehavior BEST_EFFORT
@Deprecated public static final MessageFormatter.ErrorHandlingBehavior STRICT
MessageFormat
errors by throwing a RuntimeException
.public static MessageFormatter.ErrorHandlingBehavior[] values()
for (MessageFormatter.ErrorHandlingBehavior c : MessageFormatter.ErrorHandlingBehavior.values()) System.out.println(c);
public static MessageFormatter.ErrorHandlingBehavior 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 © 2016 Unicode, Inc. and others.