Class OsmTransferException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.openstreetmap.josm.io.OsmTransferException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ChangesetClosedException, MissingOAuthAccessTokenException, OsmApiException, OsmApiInitializationException, OsmTransferCanceledException

public class OsmTransferException extends Exception
Exception thrown when a communication error with the OSM server occurs.
See Also:
  • Field Details

  • Constructor Details

    • OsmTransferException

      Constructs an OsmTransferException with null as its error detail message. The cause is not initialized, and may subsequently be initialized by a call to Throwable.initCause(java.lang.Throwable).
    • OsmTransferException

      public OsmTransferException(String message)
      Constructs an OsmTransferException with the specified detail message. The cause is not initialized, and may subsequently be initialized by a call to Throwable.initCause(java.lang.Throwable).
      Parameters:
      message - The detail message (which is saved for later retrieval by the Throwable.getMessage() method)
    • OsmTransferException

      Constructs an OsmTransferException with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause).
      Parameters:
      cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). A null value is permitted, and indicates that the cause is nonexistent or unknown.
    • OsmTransferException

      public OsmTransferException(String message, Throwable cause)
      Constructs an OsmTransferException with the specified detail message and cause.

      Note that the detail message associated with cause is not automatically incorporated into this exception's detail message.

      Parameters:
      message - The detail message (which is saved for later retrieval by the Throwable.getMessage() method)
      cause - The cause (which is saved for later retrieval by the Throwable.getCause() method). A null value is permitted, and indicates that the cause is nonexistent or unknown.
  • Method Details

    • setUrl

      public void setUrl(String url)
      Sets the URL related to this error.
      Parameters:
      url - the URL related to this error (which is saved for later retrieval by the getUrl() method).
    • getUrl

      public String getUrl()
      Gets the URL related to this error.
      Returns:
      API base URL or URL set using the setUrl(java.lang.String) method