Class InvalidParameterException

    • Constructor Detail

      • InvalidParameterException

        public InvalidParameterException​(ExceptionMessageDefinition messageDefinition,
                                         String className,
                                         String actionDescription,
                                         String invalidPropertyName,
                                         String invalidPropertyValue)
        This is the typical constructor used for creating an InvalidParameterException
        Parameters:
        messageDefinition - content of the message
        className - name of class reporting error
        actionDescription - description of function it was performing when error detected
        invalidPropertyName - invalidPropertyName if there is one
        invalidPropertyValue - invalidPropertyValue if there is one
      • InvalidParameterException

        public InvalidParameterException​(ExceptionMessageDefinition messageDefinition,
                                         String className,
                                         String actionDescription,
                                         Throwable caughtError,
                                         String invalidPropertyName,
                                         String invalidPropertyValue)
        This is the constructor used for creating an InvalidParameterException when an unexpected error has been caught. The properties allow additional information to be associated with the exception.
        Parameters:
        messageDefinition - content of the message
        className - name of class reporting error
        actionDescription - description of function it was performing when error detected
        caughtError - previous error causing this exception
        invalidPropertyName - invalidPropertyName if there is one
        invalidPropertyValue - invalidPropertyValue if there is one
    • Method Detail

      • getInvalidPropertyName

        public String getInvalidPropertyName()
        invalid property name
        Returns:
        invalid property name
      • getInvalidPropertyValue

        public String getInvalidPropertyValue()
        invalid property value
        Returns:
        in valid property value
      • setRelatedProperties

        public void setRelatedProperties​(Map<String,​Object> relatedProperties)