Class OsmApiPrimitiveGoneException

    • Field Detail

      • id

        private final long id
        the id of the primitive
    • Constructor Detail

      • OsmApiPrimitiveGoneException

        public OsmApiPrimitiveGoneException​(java.lang.String errorHeader,
                                            java.lang.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