public static enum TruffleString.ErrorHandling extends Enum<TruffleString.ErrorHandling>
Enum.EnumDesc<E extends Enum<E>>
Enum Constant and Description |
---|
BEST_EFFORT
This mode generally means that the operation will try to determine the "most reasonable"
or "most useful" return value in respect to the expected encoding and the error that
occurred.
|
RETURN_NEGATIVE
This mode will cause a negative value to be returned in all error cases.
|
Modifier and Type | Method and Description |
---|---|
static TruffleString.ErrorHandling |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TruffleString.ErrorHandling[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TruffleString.ErrorHandling BEST_EFFORT
TruffleString.CodePointAtByteIndexNode
to
return the value of the integer read when reading an invalid codepoint from a
TruffleString.Encoding.UTF_32
string.public static final TruffleString.ErrorHandling RETURN_NEGATIVE
TruffleString.CodePointAtByteIndexNode
to return a negative value when reading an invalid codepoint from a
TruffleString.Encoding.UTF_32
string.public static TruffleString.ErrorHandling[] values()
public static TruffleString.ErrorHandling 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 null