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
Exception thrown when an object cannot be read from Git.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstruct 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
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
errorType
-
-
Constructor Details
-
CorruptObjectException
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
Construct a CorruptObjectException for reporting a problem specified object id- Parameters:
id
- aAnyObjectId
why
- error message
-
CorruptObjectException
Construct a CorruptObjectException for reporting a problem specified object id- Parameters:
id
- aObjectId
why
- error message
-
CorruptObjectException
Construct a CorruptObjectException for reporting a problem not associated with a specific object id.- Parameters:
why
- error message
-
CorruptObjectException
Construct a CorruptObjectException for reporting a problem not associated with a specific object id.- Parameters:
why
- message describing the corruption.cause
- optional root cause exception- Since:
- 3.4
-
-
Method Details
-
getErrorType
Specific error condition identified byObjectChecker
.- Returns:
- error condition or null.
- Since:
- 4.2
-