Class ValidationMessage

java.lang.Object
com.google.gerrit.server.git.validators.ValidationMessage
Direct Known Subclasses:
CommitValidationMessage

public class ValidationMessage extends Object
Message used as result of a validation that run during a git operation (for example git push. Intended to be shown to users.
  • Constructor Details

  • Method Details

    • getMessage

      public String getMessage()
      Returns the message to be shown to the user.
    • getType

      public ValidationMessage.Type getType()
      Returns the ValidationMessage.Type. Used to as prefix for the message in the git CLI and to color messages.
    • isError

      public boolean isError()
      Returns true if this message is an error. Used to decide if the operation should be aborted.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object