Class CommitValidationException

All Implemented Interfaces:
Serializable

public class CommitValidationException extends ValidationException
Exception thrown when a Git commit fails validations. Gerrit supports a wide range of validations (for example it validates any commits pushed to NoteDb refs for format compliance or allows to enforce commit message lengths to not exceed a certain length).
See Also:
  • Constructor Details

  • Method Details

    • getMessages

      public com.google.common.collect.ImmutableList<CommitValidationMessage> getMessages()
      Returns all validation messages individually.
    • getFullMessage

      public String getFullMessage()
      Returns all validation as a single, formatted string.