Package org.eclipse.aether.transfer
Class MetadataNotFoundException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.eclipse.aether.RepositoryException
-
- org.eclipse.aether.transfer.MetadataTransferException
-
- org.eclipse.aether.transfer.MetadataNotFoundException
-
- All Implemented Interfaces:
java.io.Serializable
public class MetadataNotFoundException extends MetadataTransferException
Thrown when metadata was not found in a particular repository.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MetadataNotFoundException(Metadata metadata, LocalRepository repository)
Creates a new exception with the specified metadata and local repository.MetadataNotFoundException(Metadata metadata, RemoteRepository repository)
Creates a new exception with the specified metadata and repository.MetadataNotFoundException(Metadata metadata, RemoteRepository repository, java.lang.String message)
Creates a new exception with the specified metadata, repository and detail message.MetadataNotFoundException(Metadata metadata, RemoteRepository repository, java.lang.String message, boolean fromCache)
Creates a new exception with the specified metadata, repository and detail message.MetadataNotFoundException(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.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static java.lang.String
getString(java.lang.String prefix, LocalRepository repository)
-
Methods inherited from class org.eclipse.aether.transfer.MetadataTransferException
getMetadata, getRepository, getString, isFromCache
-
Methods inherited from class org.eclipse.aether.RepositoryException
getMessage
-
-
-
-
Constructor Detail
-
MetadataNotFoundException
public MetadataNotFoundException(Metadata metadata, LocalRepository repository)
Creates a new exception with the specified metadata and local repository.- Parameters:
metadata
- The missing metadata, may benull
.repository
- The involved local repository, may benull
.
-
MetadataNotFoundException
public MetadataNotFoundException(Metadata metadata, RemoteRepository repository)
Creates a new exception with the specified metadata and repository.- Parameters:
metadata
- The missing metadata, may benull
.repository
- The involved remote repository, may benull
.
-
MetadataNotFoundException
public MetadataNotFoundException(Metadata metadata, RemoteRepository repository, java.lang.String message)
Creates a new exception with the specified metadata, repository and detail message.- Parameters:
metadata
- The missing metadata, may benull
.repository
- The involved remote repository, may benull
.message
- The detail message, may benull
.
-
MetadataNotFoundException
public MetadataNotFoundException(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 missing 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.
-
MetadataNotFoundException
public MetadataNotFoundException(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 missing 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
private static java.lang.String getString(java.lang.String prefix, LocalRepository repository)
-
-