public class MetadataTransferException extends RepositoryException
Modifier and Type | Field and Description |
---|---|
private boolean |
fromCache |
private Metadata |
metadata |
private RemoteRepository |
repository |
Constructor and Description |
---|
MetadataTransferException(Metadata metadata,
RemoteRepository repository,
java.lang.String message)
Creates a new exception with the specified metadata, repository and detail message.
|
MetadataTransferException(Metadata metadata,
RemoteRepository repository,
java.lang.String message,
boolean fromCache)
Creates a new exception with the specified metadata, repository and detail message.
|
MetadataTransferException(Metadata metadata,
RemoteRepository repository,
java.lang.String message,
java.lang.Throwable cause)
Creates a new exception with the specified metadata, repository, detail message and cause.
|
MetadataTransferException(Metadata metadata,
RemoteRepository repository,
java.lang.Throwable cause)
Creates a new exception with the specified metadata, repository and cause.
|
Modifier and Type | Method and Description |
---|---|
Metadata |
getMetadata()
Gets the metadata that could not be transferred.
|
RemoteRepository |
getRepository()
Gets the remote repository involved in the transfer.
|
(package private) static java.lang.String |
getString(java.lang.String prefix,
RemoteRepository repository) |
boolean |
isFromCache()
Indicates whether this exception actually just occurred or was played back from the error cache.
|
getMessage
private final transient Metadata metadata
private final transient RemoteRepository repository
private final boolean fromCache
public MetadataTransferException(Metadata metadata, RemoteRepository repository, java.lang.String message)
metadata
- The untransferable metadata, may be null
.repository
- The involved remote repository, may be null
.message
- The detail message, may be null
.public MetadataTransferException(Metadata metadata, RemoteRepository repository, java.lang.String message, boolean fromCache)
metadata
- The untransferable metadata, may be null
.repository
- The involved remote repository, may be null
.message
- The detail message, may be null
.fromCache
- true
if the exception was played back from the error cache, false
if the
exception actually just occurred.public MetadataTransferException(Metadata metadata, RemoteRepository repository, java.lang.Throwable cause)
metadata
- The untransferable metadata, may be null
.repository
- The involved remote repository, may be null
.cause
- The exception that caused this one, may be null
.public MetadataTransferException(Metadata metadata, RemoteRepository repository, java.lang.String message, java.lang.Throwable cause)
metadata
- The untransferable metadata, may be null
.repository
- The involved remote repository, may be null
.message
- The detail message, may be null
.cause
- The exception that caused this one, may be null
.static java.lang.String getString(java.lang.String prefix, RemoteRepository repository)
public Metadata getMetadata()
null
if unknown.public RemoteRepository getRepository()
null
if unknown.public boolean isFromCache()
true
if the exception was played back from the error cache, false
if the exception
actually occurred just now.