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:
Serializable
public class AmbiguousObjectException extends IOException
AnAbbreviatedObjectId
cannot be extended.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AmbiguousObjectException(AbbreviatedObjectId id, 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 resultCollection<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
-
-
-
-
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-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 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)
-
-