Package org.openstreetmap.josm.io
Class OsmTransferException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.openstreetmap.josm.io.OsmTransferException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
ChangesetClosedException
,MissingOAuthAccessTokenException
,OsmApiException
,OsmApiInitializationException
,OsmTransferCanceledException
public class OsmTransferException extends java.lang.Exception
Exception thrown when a communication error with the OSM server occurs.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
url
-
Constructor Summary
Constructors Constructor Description OsmTransferException()
Constructs anOsmTransferException
withnull
as its error detail message.OsmTransferException(java.lang.String message)
Constructs anOsmTransferException
with the specified detail message.OsmTransferException(java.lang.String message, java.lang.Throwable cause)
Constructs anOsmTransferException
with the specified detail message and cause.OsmTransferException(java.lang.Throwable cause)
Constructs anOsmTransferException
with the specified cause and a detail message of(cause==null ? null : cause.toString())
(which typically contains the class and detail message ofcause
).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getUrl()
Gets the URL related to this error.void
setUrl(java.lang.String url)
Sets the URL related to this error.
-
-
-
Field Detail
-
url
private java.lang.String url
-
-
Constructor Detail
-
OsmTransferException
public OsmTransferException()
Constructs anOsmTransferException
withnull
as its error detail message. The cause is not initialized, and may subsequently be initialized by a call toThrowable.initCause(java.lang.Throwable)
.
-
OsmTransferException
public OsmTransferException(java.lang.String message)
Constructs anOsmTransferException
with 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
public OsmTransferException(java.lang.Throwable cause)
Constructs anOsmTransferException
with 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). Anull
value is permitted, and indicates that the cause is nonexistent or unknown.
-
OsmTransferException
public OsmTransferException(java.lang.String message, java.lang.Throwable cause)
Constructs anOsmTransferException
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 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 Detail
-
setUrl
public void setUrl(java.lang.String url)
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
public java.lang.String getUrl()
Gets the URL related to this error.- Returns:
- API base URL or URL set using the
setUrl(java.lang.String)
method
-
-