public static enum CannotProvideCoderException.ReasonCode extends java.lang.Enum<CannotProvideCoderException.ReasonCode>
Coder
inference failed.Enum Constant and Description |
---|
TYPE_ERASURE
The reason a coder could not be provided is type erasure, for example when requesting
coder inference for a
List<T> where T is unknown. |
UNKNOWN
The reason a coder could not be provided is unknown or does have an established
CannotProvideCoderException.ReasonCode . |
Modifier and Type | Method and Description |
---|---|
static CannotProvideCoderException.ReasonCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CannotProvideCoderException.ReasonCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CannotProvideCoderException.ReasonCode UNKNOWN
CannotProvideCoderException.ReasonCode
.public static final CannotProvideCoderException.ReasonCode TYPE_ERASURE
List<T>
where T
is unknown.public static CannotProvideCoderException.ReasonCode[] values()
for (CannotProvideCoderException.ReasonCode c : CannotProvideCoderException.ReasonCode.values()) System.out.println(c);
public static CannotProvideCoderException.ReasonCode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null