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
public class CommentsRejectedException extends Exception
Thrown when comment validation rejected a comment, preventing it from being published.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CommentsRejectedException(Collection<CommentValidationFailure> commentValidationFailures)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.common.collect.ImmutableList<CommentValidationFailure>
getCommentValidationFailures()
Returns the validation failures that caused this exception.String
getMessage()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
CommentsRejectedException
public CommentsRejectedException(Collection<CommentValidationFailure> commentValidationFailures)
-
-
Method Detail
-
getMessage
public String 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.
-
-