Class OsmApiPrimitiveGoneException

All Implemented Interfaces:
Serializable

Represents an exception thrown by the OSM API if JOSM tries to update or delete a primitive which is already deleted on the server.
Since:
2198
See Also:
  • Field Details

  • Constructor Details

    • OsmApiPrimitiveGoneException

      public OsmApiPrimitiveGoneException(String errorHeader, String errorBody)
      Constructs a new OsmApiPrimitiveGoneException.
      Parameters:
      errorHeader - error header
      errorBody - error body
  • Method Details

    • isKnownPrimitive

      public boolean isKnownPrimitive()
      Replies true if we know what primitive this exception was thrown for
      Returns:
      true if we know what primitive this exception was thrown for
    • getPrimitiveType

      Replies the type of the primitive this exception was thrown for. null, if the type is not known.
      Returns:
      the type of the primitive this exception was thrown for
    • getPrimitiveId

      public long getPrimitiveId()
      Replies the id of the primitive this exception was thrown for. 0, if the id is not known.
      Returns:
      the id of the primitive this exception was thrown for