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 Summary
Nested Classes - 
Constructor Summary
ConstructorsConstructorDescriptionValidationMessage(String message, boolean isError) ValidationMessage(String message, ValidationMessage.Type type)  - 
Method Summary
Modifier 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
- 
getMessage
Returns the message to be shown to the user. - 
getType
Returns theValidationMessage.Type. Used to as prefix for the message in the git CLI and to color messages. - 
isError
public boolean isError()Returnstrueif this message is an error. Used to decide if the operation should be aborted. - 
hashCode
public int hashCode() - 
equals
 - 
toString
 
 -