Class AmbiguousObjectException

    • Constructor Detail

      • AmbiguousObjectException

        public AmbiguousObjectException​(AbbreviatedObjectId id,
                                        Collection<ObjectId> candidates)
        Construct a MissingObjectException for the specified object id. Expected type is reported to simplify tracking down the problem.
        Parameters:
        id - SHA-1
        candidates - the candidate matches returned by the ObjectReader.
    • Method Detail

      • getAbbreviatedObjectId

        public AbbreviatedObjectId getAbbreviatedObjectId()
        Get the AbbreviatedObjectId that has more than one result
        Returns:
        the AbbreviatedObjectId that has more than one result
      • getCandidates

        public Collection<ObjectId> getCandidates()
        Get the matching candidates (or at least a subset of them)
        Returns:
        the matching candidates (or at least a subset of them)