public abstract class MigrationException extends ServiceException
Modifier | Constructor and Description |
---|---|
protected |
MigrationException(KeyedMessage message,
Object subject,
Throwable cause) |
Modifier and Type | Method and Description |
---|---|
Optional<Object> |
getSubject() |
getKeyedMessage, getLocalizedMessage, getMessageKey
addSuppressed, fillInStackTrace, getCause, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
@Nonnull public Optional<Object> getSubject()
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.Copyright © 2022 Atlassian. All rights reserved.