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
An
AbbreviatedObjectId
cannot be extended.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Collection<ObjectId>
private final AbbreviatedObjectId
private static final long
-
Constructor Summary
ConstructorsConstructorDescriptionAmbiguousObjectException
(AbbreviatedObjectId id, Collection<ObjectId> candidates) Construct a MissingObjectException for the specified object id. -
Method Summary
Modifier and TypeMethodDescriptionGet theAbbreviatedObjectId
that has more than one resultGet 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
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
missing
-
candidates
-
-
Constructor Details
-
AmbiguousObjectException
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 Details
-
getAbbreviatedObjectId
Get theAbbreviatedObjectId
that has more than one result- Returns:
- the
AbbreviatedObjectId
that has more than one result
-
getCandidates
Get the matching candidates (or at least a subset of them)- Returns:
- the matching candidates (or at least a subset of them)
-