public class OsmApiPrimitiveGoneException extends OsmApiException
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
OsmApiPrimitiveGoneException(java.lang.String errorHeader,
java.lang.String errorBody)
Constructs a new
OsmApiPrimitiveGoneException . |
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
public static final java.lang.String ERROR_HEADER_PATTERN
private final OsmPrimitiveType type
private final long id
public OsmApiPrimitiveGoneException(java.lang.String errorHeader, java.lang.String errorBody)
OsmApiPrimitiveGoneException
.errorHeader
- error headererrorBody
- error bodypublic boolean isKnownPrimitive()
public OsmPrimitiveType getPrimitiveType()
public long getPrimitiveId()