Top Description Fields Constructors Methods
org.eclipse.jgit.errors

public Class AmbiguousObjectException

extends IOException
Class Inheritance
Imports
java.io.IOException, java.text.MessageFormat, java.util.Collection, org.eclipse.jgit.internal.JGitText, org.eclipse.jgit.lib.AbbreviatedObjectId, .ObjectId

An org.eclipse.jgit.lib.AbbreviatedObjectId cannot be extended.

Field Summary

Modifier and TypeField and Description
private final Collection<ObjectId>
private final AbbreviatedObjectId
private static final long

Constructor Summary

AccessConstructor and Description
public
AmbiguousObjectException(final AbbreviatedObjectId
SHA-1
id
,
final Collection<ObjectId>
the candidate matches returned by the ObjectReader.
candidates
)

Construct a MissingObjectException for the specified object id. Expected type is reported to simplify tracking down the problem.

Method Summary

Modifier and TypeMethod and Description
public AbbreviatedObjectId

Returns:

the AbbreviatedObjectId that has more than one result
getAbbreviatedObjectId
()

Get the AbbreviatedObjectId that has more than one result

public Collection<ObjectId>

Returns:

the matching candidates (or at least a subset of them)
getCandidates
()

Get the matching candidates (or at least a subset of them)

Field Detail

candidatesback to summary
private final Collection<ObjectId> candidates
missingback to summary
private final AbbreviatedObjectId missing
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.io.IOException.serialVersionUID.

Constructor Detail

AmbiguousObjectExceptionback to summary
public AmbiguousObjectException(final AbbreviatedObjectId id, final Collection<ObjectId> candidates)

Construct a MissingObjectException for the specified object id. Expected type is reported to simplify tracking down the problem.

Parameters
id:AbbreviatedObjectId

SHA-1

candidates:Collection<ObjectId>

the candidate matches returned by the ObjectReader.

Method Detail

getAbbreviatedObjectIdback to summary
public AbbreviatedObjectId getAbbreviatedObjectId()

Get the AbbreviatedObjectId that has more than one result

Returns:AbbreviatedObjectId

the AbbreviatedObjectId that has more than one result

getCandidatesback to summary
public Collection<ObjectId> getCandidates()

Get the matching candidates (or at least a subset of them)

Returns:Collection<ObjectId>

the matching candidates (or at least a subset of them)