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:
Serializable
- Direct Known Subclasses:
MetadataNotFoundException
Thrown when metadata could not be uploaded/downloaded to/from a particular remote repository.
- See Also:
-
Constructor Summary
ConstructorDescriptionMetadataTransferException
(Metadata metadata, RemoteRepository repository, String message) Creates a new exception with the specified metadata, repository and detail message.MetadataTransferException
(Metadata metadata, RemoteRepository repository, String message, boolean fromCache) Creates a new exception with the specified metadata, repository and detail message.MetadataTransferException
(Metadata metadata, RemoteRepository repository, String message, Throwable cause) Creates a new exception with the specified metadata, repository, detail message and cause.MetadataTransferException
(Metadata metadata, RemoteRepository repository, Throwable cause) Creates a new exception with the specified metadata, repository and cause. -
Method Summary
Modifier and TypeMethodDescriptionGets the metadata that could not be transferred.Gets the remote repository involved in the transfer.boolean
Indicates whether this exception actually just occurred or was played back from the error cache.Methods inherited from class org.eclipse.aether.RepositoryException
getMessage
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MetadataTransferException
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, 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
-true
if the exception was played back from the error cache,false
if the exception actually just occurred.
-
MetadataTransferException
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, String message, 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 Details
-
getMetadata
Gets the metadata that could not be transferred.- Returns:
- The troublesome metadata or
null
if unknown.
-
getRepository
Gets the remote repository involved in the transfer.- Returns:
- The involved remote repository or
null
if unknown.
-
isFromCache
Indicates whether this exception actually just occurred or was played back from the error cache.- Returns:
true
if the exception was played back from the error cache,false
if the exception actually occurred just now.
-