Class RefOperationValidationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.google.gerrit.server.validators.ValidationException
-
- com.google.gerrit.server.git.validators.RefOperationValidationException
-
- All Implemented Interfaces:
Serializable
public class RefOperationValidationException extends ValidationException
Exception to be thrown when the validation of a ref operation fails and should be aborted. Examples of a ref operations include creating or updating refs.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RefOperationValidationException(String reason, com.google.common.collect.ImmutableList<ValidationMessage> messages)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getMessage()
com.google.common.collect.ImmutableList<ValidationMessage>
getMessages()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
RefOperationValidationException
public RefOperationValidationException(String reason, com.google.common.collect.ImmutableList<ValidationMessage> messages)
-
-
Method Detail
-
getMessages
public com.google.common.collect.ImmutableList<ValidationMessage> getMessages()
-
getMessage
public String getMessage()
- Overrides:
getMessage
in classThrowable
-
-