Package org.eclipse.jgit.errors
Class CorruptPackIndexException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.eclipse.jgit.errors.CorruptPackIndexException
-
- All Implemented Interfaces:
Serializable
public class CorruptPackIndexException extends Exception
Exception thrown when encounters a corrupt pack index file.- Since:
- 4.9
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CorruptPackIndexException.ErrorType
The error type of a corrupt index file.
-
Constructor Summary
Constructors Constructor Description CorruptPackIndexException(String message, CorruptPackIndexException.ErrorType errorType)
Report a specific error condition discovered in an index file.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CorruptPackIndexException.ErrorType
getErrorType()
Specific the reason of the corrupt index file.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
CorruptPackIndexException
public CorruptPackIndexException(String message, CorruptPackIndexException.ErrorType errorType)
Report a specific error condition discovered in an index file.- Parameters:
message
- the error message.errorType
- the error type of corruption.
-
-
Method Detail
-
getErrorType
@Nullable public CorruptPackIndexException.ErrorType getErrorType()
Specific the reason of the corrupt index file.- Returns:
- error condition or null.
-
-