Class 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
    • Constructor Detail

      • RepositoryOfflineException

        public RepositoryOfflineException​(RemoteRepository repository)
        Creates a new exception with the specified repository.
        Parameters:
        repository - The inaccessible remote repository, may be null.
      • 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 be null.
        message - The detail message, may be null.
    • 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.