Package org.eclipse.aether.repository
Class NoLocalRepositoryManagerException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.eclipse.aether.RepositoryException
-
- org.eclipse.aether.repository.NoLocalRepositoryManagerException
-
- All Implemented Interfaces:
java.io.Serializable
public class NoLocalRepositoryManagerException extends RepositoryException
Thrown in case of an unsupported local repository type.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private LocalRepository
repository
-
Constructor Summary
Constructors Constructor Description NoLocalRepositoryManagerException(LocalRepository repository)
Creates a new exception with the specified repository.NoLocalRepositoryManagerException(LocalRepository repository, java.lang.String message)
Creates a new exception with the specified repository and detail message.NoLocalRepositoryManagerException(LocalRepository repository, java.lang.String message, java.lang.Throwable cause)
Creates a new exception with the specified repository, detail message and cause.NoLocalRepositoryManagerException(LocalRepository repository, java.lang.Throwable cause)
Creates a new exception with the specified repository and cause.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LocalRepository
getRepository()
Gets the local repository whose content type is not supported.private static java.lang.String
toMessage(LocalRepository repository)
-
Methods inherited from class org.eclipse.aether.RepositoryException
getMessage
-
-
-
-
Field Detail
-
repository
private final transient LocalRepository repository
-
-
Constructor Detail
-
NoLocalRepositoryManagerException
public NoLocalRepositoryManagerException(LocalRepository repository)
Creates a new exception with the specified repository.- Parameters:
repository
- The local repository for which no support is available, may benull
.
-
NoLocalRepositoryManagerException
public NoLocalRepositoryManagerException(LocalRepository repository, java.lang.String message)
Creates a new exception with the specified repository and detail message.- Parameters:
repository
- The local repository for which no support is available, may benull
.message
- The detail message, may benull
.
-
NoLocalRepositoryManagerException
public NoLocalRepositoryManagerException(LocalRepository repository, java.lang.Throwable cause)
Creates a new exception with the specified repository and cause.- Parameters:
repository
- The local repository for which no support is available, may benull
.cause
- The exception that caused this one, may benull
.
-
NoLocalRepositoryManagerException
public NoLocalRepositoryManagerException(LocalRepository repository, java.lang.String message, java.lang.Throwable cause)
Creates a new exception with the specified repository, detail message and cause.- Parameters:
repository
- The local repository for which no support is available, may benull
.message
- The detail message, may benull
.cause
- The exception that caused this one, may benull
.
-
-
Method Detail
-
toMessage
private static java.lang.String toMessage(LocalRepository repository)
-
getRepository
public LocalRepository getRepository()
Gets the local repository whose content type is not supported.- Returns:
- The unsupported local repository or
null
if unknown.
-
-