Class ValidationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.github.toolarium.enumeration.configuration.validation.ValidationException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
EmptyValueException
public class ValidationException extends java.lang.ExceptionDefines a validation exception- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ValidationException(java.lang.String message)Constructor for ValidationExceptionValidationException(java.lang.String message, java.lang.Exception e)Constructor for ValidationExceptionValidationException(java.lang.String message, java.lang.String configurationValue, java.lang.Object convertedValue)Constructor for ValidationExceptionValidationException(java.lang.String message, java.lang.String configurationValue, java.util.Collection<java.lang.Object> convertedValueList)Constructor for ValidationException
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetConfigurationValue()Get the configuration valuejava.util.Collection<java.lang.Object>getConvertedValueList()Get the converted value listvoidsetValue(java.lang.String configurationValue, java.util.Collection<java.lang.Object> convertedValueList)Set the value
-
-
-
Constructor Detail
-
ValidationException
public ValidationException(java.lang.String message)
Constructor for ValidationException- Parameters:
message- the message
-
ValidationException
public ValidationException(java.lang.String message, java.lang.String configurationValue, java.lang.Object convertedValue)Constructor for ValidationException- Parameters:
message- the messageconfigurationValue- the configuration valueconvertedValue- the converted value
-
ValidationException
public ValidationException(java.lang.String message, java.lang.String configurationValue, java.util.Collection<java.lang.Object> convertedValueList)Constructor for ValidationException- Parameters:
message- the messageconfigurationValue- the configuration valueconvertedValueList- the converted value list
-
ValidationException
public ValidationException(java.lang.String message, java.lang.Exception e)Constructor for ValidationException- Parameters:
message- the messagee- the nested exception
-
-
Method Detail
-
getConfigurationValue
public java.lang.String getConfigurationValue()
Get the configuration value- Returns:
- the configuration value
-
getConvertedValueList
public java.util.Collection<java.lang.Object> getConvertedValueList()
Get the converted value list- Returns:
- the converted value of possible
-
setValue
public void setValue(java.lang.String configurationValue, java.util.Collection<java.lang.Object> convertedValueList)Set the value- Parameters:
configurationValue- the configuration valueconvertedValueList- the converted value list
-
-