public class RepositoryOfflineException extends RepositoryException
| Constructor and Description | 
|---|
RepositoryOfflineException(RemoteRepository repository)
Creates a new exception with the specified repository. 
 | 
RepositoryOfflineException(RemoteRepository repository,
                          String message)
Creates a new exception with the specified repository and detail message. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
RemoteRepository | 
getRepository()
Gets the remote repository that could not be accessed due to offline mode. 
 | 
getMessageaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic RepositoryOfflineException(RemoteRepository repository)
repository - The inaccessible remote repository, may be null.public RepositoryOfflineException(RemoteRepository repository, String message)
repository - The inaccessible remote repository, may be null.message - The detail message, may be null.public RemoteRepository getRepository()
null if unknown.Copyright © 2010–2021 The Apache Software Foundation. All rights reserved.