Class OsmApiPrimitiveGoneException

    • Constructor Detail

      • OsmApiPrimitiveGoneException

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

      • 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

        public OsmPrimitiveType 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