Package org.eclipse.aether.transfer
Class NoTransporterException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.eclipse.aether.RepositoryException
-
- org.eclipse.aether.transfer.NoTransporterException
-
- All Implemented Interfaces:
java.io.Serializable
public class NoTransporterException extends RepositoryException
Thrown in case of an unsupported transport protocol.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private RemoteRepository
repository
-
Constructor Summary
Constructors Constructor Description NoTransporterException(RemoteRepository repository)
Creates a new exception with the specified repository.NoTransporterException(RemoteRepository repository, java.lang.String message)
Creates a new exception with the specified repository and detail message.NoTransporterException(RemoteRepository repository, java.lang.String message, java.lang.Throwable cause)
Creates a new exception with the specified repository, detail message and cause.NoTransporterException(RemoteRepository 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 RemoteRepository
getRepository()
Gets the remote repository whose transport protocol is not supported.private static java.lang.String
toMessage(RemoteRepository repository)
-
Methods inherited from class org.eclipse.aether.RepositoryException
getMessage
-
-
-
-
Field Detail
-
repository
private final transient RemoteRepository repository
-
-
Constructor Detail
-
NoTransporterException
public NoTransporterException(RemoteRepository repository)
Creates a new exception with the specified repository.- Parameters:
repository
- The remote repository whose transport layout is not supported, may benull
.
-
NoTransporterException
public NoTransporterException(RemoteRepository repository, java.lang.String message)
Creates a new exception with the specified repository and detail message.- Parameters:
repository
- The remote repository whose transport layout is not supported, may benull
.message
- The detail message, may benull
.
-
NoTransporterException
public NoTransporterException(RemoteRepository repository, java.lang.Throwable cause)
Creates a new exception with the specified repository and cause.- Parameters:
repository
- The remote repository whose transport layout is not supported, may benull
.cause
- The exception that caused this one, may benull
.
-
NoTransporterException
public NoTransporterException(RemoteRepository repository, java.lang.String message, java.lang.Throwable cause)
Creates a new exception with the specified repository, detail message and cause.- Parameters:
repository
- The remote repository whose transport layout is not supported, 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(RemoteRepository repository)
-
getRepository
public RemoteRepository getRepository()
Gets the remote repository whose transport protocol is not supported.- Returns:
- The unsupported remote repository or
null
if unknown.
-
-