Class MigrationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.atlassian.bitbucket.ServiceException
com.atlassian.bitbucket.migration.MigrationException
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- ExportException,- ImportException,- MaxConcurrentMigrationJobsException
Runtime exception generated during a migration of repositories.
- Since:
- 5.13
- See Also:
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedMigrationException(KeyedMessage message, Object subject, Throwable cause) 
- 
Method SummaryMethods inherited from class com.atlassian.bitbucket.ServiceExceptiongetKeyedMessage, getLocalizedMessage, getMessageKeyMethods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Constructor Details- 
MigrationExceptionprotected MigrationException(@Nonnull KeyedMessage message, @Nullable Object subject, @Nullable Throwable cause) 
 
- 
- 
Method Details- 
getSubject- Returns:
- advisory information on the (possibly null) subject of the import or export at the time the exception was
 thrown. This is typically the Repository,ProjectorPullRequestbeing exported or imported but may be any other type of object that is deemed appropriate. If the exception prevented the creation of the subject itself so an instance is not available to pass in to this exception then the most relevant containing entity or object is appropriate. If the subject was not known or the exception is not specifically tied to any one subject (e.g. an IO exception while reading the export archive for import) then a null subject is appropriate.
 
 
-