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

public Class MissingObjectException

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

An expected object is missing.

Field Summary

Modifier and TypeField and Description
private final ObjectId
private static final long

Constructor Summary

AccessConstructor and Description
public
MissingObjectException(ObjectId
SHA-1
id
,
String
object type
type
)

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

public
MissingObjectException(ObjectId
SHA-1
id
,
int
object type
type
)

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

public
MissingObjectException(AbbreviatedObjectId
SHA-1
id
,
int
object type
type
)

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 ObjectId

Returns:

the ObjectId that was not found
getObjectId
()

Get the ObjectId that was not found

Field Detail

missingback to summary
private final ObjectId missing
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.io.IOException.serialVersionUID.

Constructor Detail

MissingObjectExceptionback to summary
public MissingObjectException(ObjectId id, String type)

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

Parameters
id:ObjectId

SHA-1

type:String

object type

MissingObjectExceptionback to summary
public MissingObjectException(ObjectId id, int type)

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

Parameters
id:ObjectId

SHA-1

type:int

object type

MissingObjectExceptionback to summary
public MissingObjectException(AbbreviatedObjectId id, int type)

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

Parameters
id:AbbreviatedObjectId

SHA-1

type:int

object type

Method Detail

getObjectIdback to summary
public ObjectId getObjectId()

Get the ObjectId that was not found

Returns:ObjectId

the ObjectId that was not found