Package com.saperion.ngc.exception
Enum FieldValidationException.ValidationError
- java.lang.Object
-
- java.lang.Enum<FieldValidationException.ValidationError>
-
- com.saperion.ngc.exception.FieldValidationException.ValidationError
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<FieldValidationException.ValidationError>
- Enclosing class:
- FieldValidationException
public static enum FieldValidationException.ValidationError extends java.lang.Enum<FieldValidationException.ValidationError>
Possible validation errors.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DATE_OUT_OF_RANGE
Date is out of range.INVALID_DOUBLE_FORMAT
Invalid text entered in double field.INVALID_INT_FORMAT
Invalid text entered in integer field.LOOKUP_FIXED_LINK_VIOLATED
Value entered in a lookup field is not contained in the table.MANDATORY_FIELD_NOT_SET
A mandatory field has no value.MAX_LENGTH_EXCEEDED
Maximum length of input exceeded.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FieldValidationException.ValidationError
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static FieldValidationException.ValidationError[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MANDATORY_FIELD_NOT_SET
public static final FieldValidationException.ValidationError MANDATORY_FIELD_NOT_SET
A mandatory field has no value.
-
MAX_LENGTH_EXCEEDED
public static final FieldValidationException.ValidationError MAX_LENGTH_EXCEEDED
Maximum length of input exceeded.
-
DATE_OUT_OF_RANGE
public static final FieldValidationException.ValidationError DATE_OUT_OF_RANGE
Date is out of range.
-
INVALID_DOUBLE_FORMAT
public static final FieldValidationException.ValidationError INVALID_DOUBLE_FORMAT
Invalid text entered in double field.
-
INVALID_INT_FORMAT
public static final FieldValidationException.ValidationError INVALID_INT_FORMAT
Invalid text entered in integer field.
-
LOOKUP_FIXED_LINK_VIOLATED
public static final FieldValidationException.ValidationError LOOKUP_FIXED_LINK_VIOLATED
Value entered in a lookup field is not contained in the table.
-
-
Method Detail
-
values
public static FieldValidationException.ValidationError[] 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 (FieldValidationException.ValidationError c : FieldValidationException.ValidationError.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FieldValidationException.ValidationError valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-