Package com.google.gerrit.server.update
Class CommentsRejectedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.google.gerrit.server.update.CommentsRejectedException
- All Implemented Interfaces:
Serializable
Thrown when comment validation rejected a comment, preventing it from being published.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCommentsRejectedException
(Collection<CommentValidationFailure> commentValidationFailures) -
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.collect.ImmutableList<CommentValidationFailure>
Returns the validation failures that caused this exception.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CommentsRejectedException
-
-
Method Details
-
getMessage
- Overrides:
getMessage
in classThrowable
-
getCommentValidationFailures
public com.google.common.collect.ImmutableList<CommentValidationFailure> getCommentValidationFailures()Returns the validation failures that caused this exception. By contract this list is never empty.
-