Class Validator.InvalidValueException

    • Constructor Detail

      • InvalidValueException

        public InvalidValueException​(String message)
        Deprecated.
        Constructs a new InvalidValueException with the specified message.
        Parameters:
        message - The detail message of the problem.
      • InvalidValueException

        public InvalidValueException​(String message,
                                     Validator.InvalidValueException... causes)
        Deprecated.
        Constructs a new InvalidValueException with a set of causing validation exceptions. The causing validation exceptions are included when the exception is painted to the client.
        Parameters:
        message - The detail message of the problem.
        causes - One or more InvalidValueExceptions that caused this exception.
    • Method Detail

      • isInvisible

        public boolean isInvisible()
        Deprecated.
        Check if the error message should be hidden. An empty (null or "") message is invisible unless it contains nested exceptions that are visible.
        Returns:
        true if the error message should be hidden, false otherwise
      • getHtmlMessage

        public String getHtmlMessage()
        Deprecated.
        Returns the message of the error in HTML. Note that this API may change in future versions.
      • getCauses

        public Validator.InvalidValueException[] getCauses()
        Deprecated.
        Returns the InvalidValueExceptions that caused this exception.
        Returns:
        An array containing the InvalidValueExceptions that caused this exception. Returns an empty array if this exception was not caused by other exceptions.