Merge "Don't treat MergeIdenticalTreeException as internal server error"

This commit is contained in:
Alice Kober-Sotzek
2018-02-21 13:04:23 +00:00
committed by Gerrit Code Review

View File

@@ -14,13 +14,13 @@
package com.google.gerrit.server.git;
import com.google.gerrit.extensions.restapi.RestApiException;
import com.google.gerrit.extensions.restapi.ResourceConflictException;
/**
* Indicates that the commit is already contained in destination branch. Either the commit itself is
* in the source tree, or the content is merged
*/
public class MergeIdenticalTreeException extends RestApiException {
public class MergeIdenticalTreeException extends ResourceConflictException {
private static final long serialVersionUID = 1L;
/** @param msg message to return to the client describing the error. */