Class RepositoryMovedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.atlassian.bitbucket.ServiceException
com.atlassian.bitbucket.EntityMovedException
com.atlassian.bitbucket.repository.RepositoryMovedException
- All Implemented Interfaces:
Serializable
Exception that is thrown when a repository is retrieved using an old slug, project key or namespace value after
any of these three fields have been updated (e.g. repository was renamed, moved to a different project or the
project key was changed).
- Since:
- 5.0
- See Also:
-
Constructor Summary
ConstructorDescriptionRepositoryMovedException
(Repository repository, String projectKey, String slug, KeyedMessage message) -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class com.atlassian.bitbucket.ServiceException
getKeyedMessage, getLocalizedMessage, getMessageKey
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RepositoryMovedException
public RepositoryMovedException(@Nonnull Repository repository, @Nonnull String projectKey, @Nonnull String slug, @Nonnull KeyedMessage message) - Since:
- 7.18
-
-
Method Details
-
getOldProjectKey
-
getOldSlug
-
getRepository
-