- All Implemented Interfaces:
Serializable,Comparable<ParseErrorAction>,java.lang.constant.Constable
Describes the possible actions for handling record parsing errors.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDiscard the record.Throw a runtime exception causing processing to abort immediately.Ignore the error and continue to process the record.Log a warning message, but continue to process the record in error.Log a warning message and discard the record. -
Method Summary
Modifier and TypeMethodDescriptionstatic ParseErrorActionReturns the enum constant of this class with the specified name.static ParseErrorAction[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ERROR
Throw a runtime exception causing processing to abort immediately. -
WARN_AND_DISCARD
Log a warning message and discard the record. If the error is on a field, remaining records of the field will be parsed before discarding. The record is counted towards the record warning limit. -
WARN
Log a warning message, but continue to process the record in error. If the error is on a field, the field will be null-valued on output. The record is counted towards the record warning limit. -
DISCARD
Discard the record. If the error is on a field, remaining records of the field will be parsed before discarding. -
IGNORE
Ignore the error and continue to process the record. If the error is on a field, the field will be null-valued on output.
-
-
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
-