Package com.helger.commons.typeconvert
Enum TypeConverterException.EReason
- java.lang.Object
-
- java.lang.Enum<TypeConverterException.EReason>
-
- com.helger.commons.typeconvert.TypeConverterException.EReason
-
- All Implemented Interfaces:
Serializable,Comparable<TypeConverterException.EReason>
- Enclosing class:
- TypeConverterException
@NoTranslationRequired("because whenever an exception is thrown, no locale is present!") public static enum TypeConverterException.EReason extends Enum<TypeConverterException.EReason>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONVERSION_FAILEDNO_CONVERTER_FOUNDNO_CONVERTER_FOUND_SINGLENULL_SOURCE_NOT_ALLOWED
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetMessage(Class<?> aDstClass)StringgetMessage(Class<?> aSrcClass, Class<?> aDstClass)static TypeConverterException.EReasonvalueOf(String name)Returns the enum constant of this type with the specified name.static TypeConverterException.EReason[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CONVERSION_FAILED
public static final TypeConverterException.EReason CONVERSION_FAILED
-
NO_CONVERTER_FOUND
public static final TypeConverterException.EReason NO_CONVERTER_FOUND
-
NO_CONVERTER_FOUND_SINGLE
public static final TypeConverterException.EReason NO_CONVERTER_FOUND_SINGLE
-
NULL_SOURCE_NOT_ALLOWED
public static final TypeConverterException.EReason NULL_SOURCE_NOT_ALLOWED
-
-
Method Detail
-
values
public static TypeConverterException.EReason[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TypeConverterException.EReason c : TypeConverterException.EReason.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TypeConverterException.EReason valueOf(String name)
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
-
-