public class

RepositoryMovedException

extends EntityMovedException
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

Class Overview

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).

Summary

Public Constructors
RepositoryMovedException(Repository repository, String projectNamespace, String projectKey, String slug, KeyedMessage message)
Public Methods
@Nonnull String getOldProjectKey()
@Nullable String getOldProjectNamespace()
@Nonnull String getOldSlug()
@Nonnull Repository getRepository()
[Expand]
Inherited Methods
From class com.atlassian.bitbucket.ServiceException
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public RepositoryMovedException (Repository repository, String projectNamespace, String projectKey, String slug, KeyedMessage message)

Public Methods

@Nonnull public String getOldProjectKey ()

@Nullable public String getOldProjectNamespace ()

@Nonnull public String getOldSlug ()

@Nonnull public Repository getRepository ()