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
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Collection<ObjectId>
candidates
private AbbreviatedObjectId
missing
private static long
serialVersionUID
-
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()
Get theAbbreviatedObjectId
that has more than one resultjava.util.Collection<ObjectId>
getCandidates()
Get the matching candidates (or at least a subset of them)
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
missing
private final AbbreviatedObjectId missing
-
candidates
private final java.util.Collection<ObjectId> candidates
-
-
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()
Get theAbbreviatedObjectId
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)
-
-