public class RepositoryOfflineException extends RepositoryException
Modifier and Type | Field and Description |
---|---|
private RemoteRepository |
repository |
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
private static java.lang.String |
getMessage(RemoteRepository repository) |
RemoteRepository |
getRepository()
Gets the remote repository that could not be accessed due to offline mode.
|
getMessage
private final transient RemoteRepository repository
public RepositoryOfflineException(RemoteRepository repository)
repository
- The inaccessible remote repository, may be null
.public RepositoryOfflineException(RemoteRepository repository, java.lang.String message)
repository
- The inaccessible remote repository, may be null
.message
- The detail message, may be null
.private static java.lang.String getMessage(RemoteRepository repository)
public RemoteRepository getRepository()
null
if unknown.