Known Direct Subclasses
ExportException |
Runtime exception generated during export phase of migration |
ImportException |
Runtime exception generated during import phase of migration |
MaxConcurrentMigrationJobsException |
Exception thrown when a migration job is submitted to be run but the maximum number of concurrent migration jobs
are already running on that node. |
|
Class Overview
Runtime exception generated during a migration of repositories.
Summary
Public Methods |
@Nonnull
Optional<Object>
|
getSubject()
|
[Expand]
Inherited Methods |
From class
com.atlassian.bitbucket.ServiceException
|
From class
java.lang.Throwable
synchronized
final
void
|
addSuppressed(Throwable arg0)
|
synchronized
Throwable
|
fillInStackTrace()
|
synchronized
Throwable
|
getCause()
|
String
|
getLocalizedMessage()
|
String
|
getMessage()
|
StackTraceElement[]
|
getStackTrace()
|
synchronized
final
Throwable[]
|
getSuppressed()
|
synchronized
Throwable
|
initCause(Throwable arg0)
|
void
|
printStackTrace()
|
void
|
printStackTrace(PrintWriter arg0)
|
void
|
printStackTrace(PrintStream arg0)
|
void
|
setStackTrace(StackTraceElement[] arg0)
|
String
|
toString()
|
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Protected Constructors
protected
MigrationException
(KeyedMessage message, Object subject, Throwable cause)
Public Methods
@Nonnull
public
Optional<Object>
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
, Project
or PullRequest
being 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.