Package org.eclipse.aether.transfer
Class RepositoryOfflineException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.eclipse.aether.RepositoryException
-
- org.eclipse.aether.transfer.RepositoryOfflineException
-
- All Implemented Interfaces:
java.io.Serializable
public class RepositoryOfflineException extends RepositoryException
Thrown when a transfer could not be performed because a remote repository is not accessible in offline mode.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private RemoteRepository
repository
-
Constructor Summary
Constructors Constructor Description RepositoryOfflineException(RemoteRepository repository)
Creates a new exception with the specified repository.RepositoryOfflineException(RemoteRepository repository, java.lang.String message)
Creates a new exception with the specified repository and detail message.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static java.lang.String
getMessage(RemoteRepository repository)
RemoteRepository
getRepository()
Gets the remote repository that could not be accessed due to offline mode.-
Methods inherited from class org.eclipse.aether.RepositoryException
getMessage
-
-
-
-
Field Detail
-
repository
private final transient RemoteRepository repository
-
-
Constructor Detail
-
RepositoryOfflineException
public RepositoryOfflineException(RemoteRepository repository)
Creates a new exception with the specified repository.- Parameters:
repository
- The inaccessible remote repository, may benull
.
-
RepositoryOfflineException
public RepositoryOfflineException(RemoteRepository repository, java.lang.String message)
Creates a new exception with the specified repository and detail message.- Parameters:
repository
- The inaccessible remote repository, may benull
.message
- The detail message, may benull
.
-
-
Method Detail
-
getMessage
private static java.lang.String getMessage(RemoteRepository repository)
-
getRepository
public RemoteRepository getRepository()
Gets the remote repository that could not be accessed due to offline mode.- Returns:
- The inaccessible remote repository or
null
if unknown.
-
-