Class ResourceConflictException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.google.gerrit.extensions.restapi.RestApiException
-
- com.google.gerrit.extensions.restapi.ResourceConflictException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
IntegrationConflictException
,MergeConflictException
,MergeIdenticalTreeException
,SubmoduleConflictException
public class ResourceConflictException extends RestApiException
Resource state does not permit requested operation (HTTP 409 Conflict).RestModifyView
implementations may fail with this exception when the named resource does not permit the modification to take place at this time. An example use is trying to abandon a change that is already merged. The change cannot be abandoned once merged so an operation would throw.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ResourceConflictException(String msg)
ResourceConflictException(String msg, Throwable cause)
-
Method Summary
-
Methods inherited from class com.google.gerrit.extensions.restapi.RestApiException
caching, setCaching, wrap
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ResourceConflictException
public ResourceConflictException(String msg)
- Parameters:
msg
- message to return to the client describing the error.
-
-