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:
    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 Summary

    Constructors
    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.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `RemoteRepository` | `getRepository()` Gets the remote repository that could not be accessed due to offline mode.

    - ### Methods inherited from class org.eclipse.aether.RepositoryException

      `getMessage`

    - ### Methods inherited from class java.lang.Throwable

      `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### 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,
                                    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

    - #### 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.

Copyright © 2010-2014 The Eclipse Foundation. All Rights Reserved.