Class ValidationException

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    EmptyValueException

    public class ValidationException
    extends java.lang.Exception
    Defines a validation exception
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ValidationException​(java.lang.String message)
      Constructor for ValidationException
      ValidationException​(java.lang.String message, java.lang.Exception e)
      Constructor for ValidationException
      ValidationException​(java.lang.String message, java.lang.String configurationValue, java.lang.Object convertedValue)
      Constructor for ValidationException
      ValidationException​(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.String getConfigurationValue()
      Get the configuration value
      java.util.Collection<java.lang.Object> getConvertedValueList()
      Get the converted value list
      void setValue​(java.lang.String configurationValue, java.util.Collection<java.lang.Object> convertedValueList)
      Set the value
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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 message
        configurationValue - the configuration value
        convertedValue - 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 message
        configurationValue - the configuration value
        convertedValueList - the converted value list
      • ValidationException

        public ValidationException​(java.lang.String message,
                                   java.lang.Exception e)
        Constructor for ValidationException
        Parameters:
        message - the message
        e - 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 value
        convertedValueList - the converted value list