Package org.eclipse.jgit.errors
Class CorruptObjectException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- org.eclipse.jgit.errors.CorruptObjectException
-
- All Implemented Interfaces:
Serializable
public class CorruptObjectException extends IOException
Exception thrown when an object cannot be read from Git.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CorruptObjectException(String why)
Construct a CorruptObjectException for reporting a problem not associated with a specific object id.CorruptObjectException(String why, Throwable cause)
Construct a CorruptObjectException for reporting a problem not associated with a specific object id.CorruptObjectException(AnyObjectId id, String why)
Construct a CorruptObjectException for reporting a problem specified object idCorruptObjectException(ObjectChecker.ErrorType type, AnyObjectId id, String why)
Report a specific error condition discovered in an object.CorruptObjectException(ObjectId id, String why)
Construct a CorruptObjectException for reporting a problem specified object id
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectChecker.ErrorType
getErrorType()
Specific error condition identified byObjectChecker
.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
CorruptObjectException
public CorruptObjectException(ObjectChecker.ErrorType type, AnyObjectId id, String why)
Report a specific error condition discovered in an object.- Parameters:
type
- type of errorid
- identity of the bad objectwhy
- description of the error.- Since:
- 4.2
-
CorruptObjectException
public CorruptObjectException(AnyObjectId id, String why)
Construct a CorruptObjectException for reporting a problem specified object id- Parameters:
id
- aAnyObjectId
why
- error message
-
CorruptObjectException
public CorruptObjectException(ObjectId id, String why)
Construct a CorruptObjectException for reporting a problem specified object id- Parameters:
id
- aObjectId
why
- error message
-
CorruptObjectException
public CorruptObjectException(String why)
Construct a CorruptObjectException for reporting a problem not associated with a specific object id.- Parameters:
why
- error message
-
-
Method Detail
-
getErrorType
@Nullable public ObjectChecker.ErrorType getErrorType()
Specific error condition identified byObjectChecker
.- Returns:
- error condition or null.
- Since:
- 4.2
-
-