public class AmbiguousObjectException extends IOException
AbbreviatedObjectId cannot be extended.| Constructor and Description | 
|---|
AmbiguousObjectException(AbbreviatedObjectId id,
                        Collection<ObjectId> candidates)
Construct a MissingObjectException for the specified object id. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
AbbreviatedObjectId | 
getAbbreviatedObjectId()
Get the  
AbbreviatedObjectId that has more than one result | 
Collection<ObjectId> | 
getCandidates()
Get the matching candidates (or at least a subset of them) 
 | 
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic AmbiguousObjectException(AbbreviatedObjectId id, Collection<ObjectId> candidates)
id - SHA-1candidates - the candidate matches returned by the ObjectReader.public AbbreviatedObjectId getAbbreviatedObjectId()
AbbreviatedObjectId that has more than one resultAbbreviatedObjectId that has more than one resultpublic Collection<ObjectId> getCandidates()
Copyright © 2020 Eclipse JGit Project. All rights reserved.