Package org.eclipse.jgit.errors
Class AmbiguousObjectException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- org.eclipse.jgit.errors.AmbiguousObjectException
-
- All Implemented Interfaces:
java.io.Serializable
public class AmbiguousObjectException extends java.io.IOException
AnAbbreviatedObjectId
cannot be extended.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AmbiguousObjectException(AbbreviatedObjectId id, java.util.Collection<ObjectId> candidates)
Construct a MissingObjectException for the specified object id.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbbreviatedObjectId
getAbbreviatedObjectId()
java.util.Collection<ObjectId>
getCandidates()
-
-
-
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-1candidates
- the candidate matches returned by the ObjectReader.
-
-
Method Detail
-
getAbbreviatedObjectId
public AbbreviatedObjectId getAbbreviatedObjectId()
- Returns:
- the AbbreviatedObjectId that has more than one result.
-
getCandidates
public java.util.Collection<ObjectId> getCandidates()
- Returns:
- the matching candidates (or at least a subset of them).
-
-