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
An AbbreviatedObjectId
cannot be extended.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
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.
getAbbreviatedObjectId
public AbbreviatedObjectId getAbbreviatedObjectId()
- Returns:
- the AbbreviatedObjectId that has more than one result.
getCandidates
public Collection<ObjectId> getCandidates()
- Returns:
- the matching candidates (or at least a subset of them).
Copyright © 2012. All Rights Reserved.