Class AmbiguousObjectException

  • All Implemented Interfaces:
    java.io.Serializable

    public class AmbiguousObjectException
    extends java.io.IOException
    An AbbreviatedObjectId cannot be extended.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      AbbreviatedObjectId getAbbreviatedObjectId()
      Get the AbbreviatedObjectId that has more than one result
      java.util.Collection<ObjectId> getCandidates()
      Get the matching candidates (or at least a subset of them)
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • AmbiguousObjectException

        public AmbiguousObjectException​(AbbreviatedObjectId id,
                                        java.util.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 java.util.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)