Class AmbiguousObjectException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.eclipse.jgit.errors.AmbiguousObjectException
All Implemented Interfaces:
Serializable

public class AmbiguousObjectException extends IOException
An AbbreviatedObjectId cannot be extended.
See Also:
  • Field Details

  • Constructor Details

    • 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 Details

    • 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)