public class OsmApiPrimitiveGoneException extends OsmApiException
Modifier and Type | Field and Description |
---|---|
static 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 and Description |
---|
OsmApiPrimitiveGoneException(String errorHeader,
String errorBody) |
Modifier and Type | Method and Description |
---|---|
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
|
getAccessedUrl, getDisplayMessage, getErrorBody, getErrorHeader, getMessage, getResponseCode, setAccessedUrl, setErrorBody, setErrorHeader, setResponseCode
getUrl, setUrl
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public static final String ERROR_HEADER_PATTERN
private OsmPrimitiveType type
private long id
public OsmApiPrimitiveGoneException(String errorHeader, String errorBody)
public boolean isKnownPrimitive()
public OsmPrimitiveType getPrimitiveType()
public long getPrimitiveId()