|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.openstreetmap.josm.io.OsmTransferException
org.openstreetmap.josm.io.OsmApiException
org.openstreetmap.josm.io.OsmApiPrimitiveGoneException
public class OsmApiPrimitiveGoneException
Represents an exception thrown by the OSM API if JOSM tries to update or delete a primitive which is already deleted on the server.
Field Summary | |
---|---|
static java.lang.String |
ERROR_HEADER_PATTERN
The regexp pattern for the error header replied by the OSM API |
private long |
id
the id of the primitive |
private OsmPrimitiveType |
type
the type of the primitive which is gone on the server |
Constructor Summary | |
---|---|
OsmApiPrimitiveGoneException(java.lang.String errorHeader,
java.lang.String errorBody)
|
Method Summary | |
---|---|
long |
getPrimitiveId()
Replies the id of the primitive this exception was thrown for. |
OsmPrimitiveType |
getPrimitiveType()
Replies the type of the primitive this exception was thrown for. |
boolean |
isKnownPrimitive()
Replies true if we know what primitive this exception was thrown for |
Methods inherited from class org.openstreetmap.josm.io.OsmApiException |
---|
getAccessedUrl, getDisplayMessage, getErrorBody, getErrorHeader, getMessage, getResponseCode, setAccessedUrl, setErrorBody, setErrorHeader, setResponseCode |
Methods inherited from class org.openstreetmap.josm.io.OsmTransferException |
---|
getUrl, setUrl |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ERROR_HEADER_PATTERN
private OsmPrimitiveType type
private long id
Constructor Detail |
---|
public OsmApiPrimitiveGoneException(java.lang.String errorHeader, java.lang.String errorBody)
Method Detail |
---|
public boolean isKnownPrimitive()
public OsmPrimitiveType getPrimitiveType()
public long getPrimitiveId()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |