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

public Class CorruptPackIndexException

extends Exception
Class Inheritance
Imports
org.eclipse.jgit.annotations.Nullable

Exception thrown when encounters a corrupt pack index file.
Since
4.9

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum
CorruptPackIndexException.ErrorType

The error type of a corrupt index file.

Field Summary

Modifier and TypeField and Description
private CorruptPackIndexException.ErrorType
private static final long

Constructor Summary

AccessConstructor and Description
public
CorruptPackIndexException(String
the error message.
message
,
CorruptPackIndexException.ErrorType
the error type of corruption.
errorType
)

Report a specific error condition discovered in an index file.

Method Summary

Modifier and TypeMethod and Description
public CorruptPackIndexException.ErrorType

Returns:

error condition or null.
getErrorType
()

Specific the reason of the corrupt index file.

Field Detail

errorTypeback to summary
private CorruptPackIndexException.ErrorType errorType
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.Exception.serialVersionUID.

Constructor Detail

CorruptPackIndexExceptionback to summary
public CorruptPackIndexException(String message, CorruptPackIndexException.ErrorType errorType)

Report a specific error condition discovered in an index file.

Parameters
message:String

the error message.

errorType:CorruptPackIndexException.ErrorType

the error type of corruption.

Method Detail

getErrorTypeback to summary
public CorruptPackIndexException.ErrorType getErrorType()

Specific the reason of the corrupt index file.

Returns:CorruptPackIndexException.ErrorType

error condition or null.

Annotations
@Nullable
org.eclipse.jgit.errors back to summary

public final Enum CorruptPackIndexException.ErrorType

extends Enum<CorruptPackIndexException.ErrorType>
Class Inheritance

The error type of a corrupt index file.

Field Summary

Modifier and TypeField and Description
public static final CorruptPackIndexException.ErrorType
MISMATCH_CRC

CRC does not match CRC of the object data in pack file.

public static final CorruptPackIndexException.ErrorType
MISMATCH_OFFSET

Offset does not match index in pack file.

public static final CorruptPackIndexException.ErrorType
MISSING_CRC

CRC is not present in index file.

public static final CorruptPackIndexException.ErrorType
MISSING_OBJ

Object in pack is not present in index file.

public static final CorruptPackIndexException.ErrorType
UNKNOWN_OBJ

Object in index file is not present in pack file.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static CorruptPackIndexException.ErrorType
public static CorruptPackIndexException.ErrorType[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

MISMATCH_CRCback to summary
public static final CorruptPackIndexException.ErrorType MISMATCH_CRC

CRC does not match CRC of the object data in pack file.

MISMATCH_OFFSETback to summary
public static final CorruptPackIndexException.ErrorType MISMATCH_OFFSET

Offset does not match index in pack file.

MISSING_CRCback to summary
public static final CorruptPackIndexException.ErrorType MISSING_CRC

CRC is not present in index file.

MISSING_OBJback to summary
public static final CorruptPackIndexException.ErrorType MISSING_OBJ

Object in pack is not present in index file.

UNKNOWN_OBJback to summary
public static final CorruptPackIndexException.ErrorType UNKNOWN_OBJ

Object in index file is not present in pack file.

Constructor Detail

ErrorTypeback to summary
private ErrorType()

Method Detail

valueOfback to summary
public static CorruptPackIndexException.ErrorType valueOf(String name)
valuesback to summary
public static CorruptPackIndexException.ErrorType[] values()