Class ValidationException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
BadExclusionException, InexistentFileException, InvalidPortNumberException, InvalidPropertyException, InvalidUUIDException, KeywordUseException, NullOrEmptyValueException, PropertyNotFoundException

public class ValidationException extends PolyApiMavenPluginException
Parent class for exceptions thrown for validation purposes. Stores the name of the property being validated and injects it into the message.
See Also:
  • Constructor Details

    • ValidationException

      public ValidationException(String propertyName, String messageTemplate)
      Constructor that takes the propertyName and a message template and generates the message with them.
      Parameters:
      propertyName - The name of the property being validated.
      messageTemplate - The message template.
    • ValidationException

      public ValidationException(String propertyName, String messageTemplate, Throwable cause)
      Constructor that takes the propertyName and a message template and generates the message with them. It also includes the cause of the exception.
      Parameters:
      propertyName - The name of the property being validated.
      messageTemplate - The message template.
      cause - The cause of the exception.