Package org.eclipse.aether.transfer
Class MetadataTransferException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.eclipse.aether.RepositoryException
-
- org.eclipse.aether.transfer.MetadataTransferException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
MetadataNotFoundException
public class MetadataTransferException extends RepositoryException
Thrown when metadata could not be uploaded/downloaded to/from a particular remote repository.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private booleanfromCacheprivate Metadatametadataprivate RemoteRepositoryrepository
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MetadatagetMetadata()Gets the metadata that could not be transferred.RemoteRepositorygetRepository()Gets the remote repository involved in the transfer.(package private) static java.lang.StringgetString(java.lang.String prefix, RemoteRepository repository)booleanisFromCache()Indicates whether this exception actually just occurred or was played back from the error cache.-
Methods inherited from class org.eclipse.aether.RepositoryException
getMessage
-
-
-
-
Field Detail
-
metadata
private final transient Metadata metadata
-
repository
private final transient RemoteRepository repository
-
fromCache
private final boolean fromCache
-
-
Constructor Detail
-
MetadataTransferException
public MetadataTransferException(Metadata metadata, RemoteRepository repository, java.lang.String message)
Creates a new exception with the specified metadata, repository and detail message.- Parameters:
metadata- The untransferable metadata, may benull.repository- The involved remote repository, may benull.message- The detail message, may benull.
-
MetadataTransferException
public MetadataTransferException(Metadata metadata, RemoteRepository repository, java.lang.String message, boolean fromCache)
Creates a new exception with the specified metadata, repository and detail message.- Parameters:
metadata- The untransferable metadata, may benull.repository- The involved remote repository, may benull.message- The detail message, may benull.fromCache-trueif the exception was played back from the error cache,falseif the exception actually just occurred.
-
MetadataTransferException
public MetadataTransferException(Metadata metadata, RemoteRepository repository, java.lang.Throwable cause)
Creates a new exception with the specified metadata, repository and cause.- Parameters:
metadata- The untransferable metadata, may benull.repository- The involved remote repository, may benull.cause- The exception that caused this one, may benull.
-
MetadataTransferException
public 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.- Parameters:
metadata- The untransferable metadata, may benull.repository- The involved remote repository, may benull.message- The detail message, may benull.cause- The exception that caused this one, may benull.
-
-
Method Detail
-
getString
static java.lang.String getString(java.lang.String prefix, RemoteRepository repository)
-
getMetadata
public Metadata getMetadata()
Gets the metadata that could not be transferred.- Returns:
- The troublesome metadata or
nullif unknown.
-
getRepository
public RemoteRepository getRepository()
Gets the remote repository involved in the transfer.- Returns:
- The involved remote repository or
nullif unknown.
-
isFromCache
public boolean isFromCache()
Indicates whether this exception actually just occurred or was played back from the error cache.- Returns:
trueif the exception was played back from the error cache,falseif the exception actually occurred just now.
-
-