Class ValidationMessage
java.lang.Object
com.google.gerrit.server.git.validators.ValidationMessage
- Direct Known Subclasses:
- CommitValidationMessage
Message used as result of a validation that run during a git operation (for example 
git
 push. Intended to be shown to users.- 
Nested Class SummaryNested Classes
- 
Constructor SummaryConstructorsConstructorDescriptionValidationMessage(String message, boolean isError) ValidationMessage(String message, ValidationMessage.Type type) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleanReturns the message to be shown to the user.getType()Returns theValidationMessage.Type.inthashCode()booleanisError()Returnstrueif this message is an error.toString()
- 
Constructor Details- 
ValidationMessage- See Also:
 
- 
ValidationMessage
 
- 
- 
Method Details- 
getMessageReturns the message to be shown to the user.
- 
getTypeReturns theValidationMessage.Type. Used to as prefix for the message in the git CLI and to color messages.
- 
isErrorpublic boolean isError()Returnstrueif this message is an error. Used to decide if the operation should be aborted.
- 
hashCodepublic int hashCode()
- 
equals
- 
toString
 
-