Package com.ibm.icu.message2
Enum MessageFormatter.ErrorHandlingBehavior
java.lang.Object
java.lang.Enum<MessageFormatter.ErrorHandlingBehavior>
com.ibm.icu.message2.MessageFormatter.ErrorHandlingBehavior
- All Implemented Interfaces:
Serializable
,Comparable<MessageFormatter.ErrorHandlingBehavior>
,java.lang.constant.Constable
- Enclosing class:
MessageFormatter
@Deprecated
public static enum MessageFormatter.ErrorHandlingBehavior
extends Enum<MessageFormatter.ErrorHandlingBehavior>
Deprecated.
This API is for technology preview only.
Determines how the formatting errors will be handled at runtime.
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDeprecated.This API is for technology preview only.Deprecated.This API is for technology preview only. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Returns the enum constant of this type with the specified name.values()
Deprecated.Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
BEST_EFFORT
Deprecated.This API is for technology preview only.Suppress errors and return best-effort output. -
STRICT
Deprecated.This API is for technology preview only.Signal allMessageFormat
errors by throwing aRuntimeException
.
-
-
Constructor Details
-
ErrorHandlingBehavior
private ErrorHandlingBehavior()Deprecated.
-
-
Method Details
-
values
Deprecated.Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Deprecated.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
-