Package org.openstreetmap.josm.io
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
Exception thrown when a communication error with the OSM server occurs.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructs anOsmTransferExceptionwithnullas its error detail message.OsmTransferException(String message) Constructs anOsmTransferExceptionwith the specified detail message.OsmTransferException(String message, Throwable cause) Constructs anOsmTransferExceptionwith the specified detail message and cause.OsmTransferException(Throwable cause) Constructs anOsmTransferExceptionwith the specified cause and a detail message of(cause==null ? null : cause.toString())(which typically contains the class and detail message ofcause). -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
url
-
-
Constructor Details
-
OsmTransferException
public OsmTransferException()Constructs anOsmTransferExceptionwithnullas its error detail message. The cause is not initialized, and may subsequently be initialized by a call toThrowable.initCause(java.lang.Throwable). -
OsmTransferException
Constructs anOsmTransferExceptionwith the specified detail message. The cause is not initialized, and may subsequently be initialized by a call toThrowable.initCause(java.lang.Throwable).- Parameters:
message- The detail message (which is saved for later retrieval by theThrowable.getMessage()method)
-
OsmTransferException
Constructs anOsmTransferExceptionwith the specified cause and a detail message of(cause==null ? null : cause.toString())(which typically contains the class and detail message ofcause).- Parameters:
cause- the cause (which is saved for later retrieval by theThrowable.getCause()method). Anullvalue is permitted, and indicates that the cause is nonexistent or unknown.
-
OsmTransferException
Constructs anOsmTransferExceptionwith the specified detail message and cause.Note that the detail message associated with
causeis not automatically incorporated into this exception's detail message.- Parameters:
message- The detail message (which is saved for later retrieval by theThrowable.getMessage()method)cause- The cause (which is saved for later retrieval by theThrowable.getCause()method). A null value is permitted, and indicates that the cause is nonexistent or unknown.
-
-
Method Details
-
setUrl
Sets the URL related to this error.- Parameters:
url- the URL related to this error (which is saved for later retrieval by thegetUrl()method).
-
getUrl
Gets the URL related to this error.- Returns:
- API base URL or URL set using the
setUrl(java.lang.String)method
-