Enum Class MessageFormatter.ErrorHandlingBehavior
java.lang.Object
java.lang.Enum<MessageFormatter.ErrorHandlingBehavior>
org.graalvm.shadowed.com.ibm.icu.message2.MessageFormatter.ErrorHandlingBehavior
- All Implemented Interfaces:
Serializable, Comparable<MessageFormatter.ErrorHandlingBehavior>, Constable
- Enclosing class:
MessageFormatter
public static enum MessageFormatter.ErrorHandlingBehavior
extends Enum<MessageFormatter.ErrorHandlingBehavior>
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(MessageFormatter.ErrorHandlingBehavior) method.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSuppress errors and return best-effort output.Signal allMessageFormaterrors by throwing aRuntimeException. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BEST_EFFORT
Suppress errors and return best-effort output. -
STRICT
Signal allMessageFormaterrors by throwing aRuntimeException.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-