Package org.eclipse.jgit.lfs.errors
Class CorruptLongObjectException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
org.eclipse.jgit.lfs.errors.CorruptLongObjectException
- All Implemented Interfaces:
Serializable
Thrown when an object id is given that doesn't match the hash of the object's
content
- Since:
- 4.3
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AnyLongObjectId
private final AnyLongObjectId
private static final long
-
Constructor Summary
ConstructorsConstructorDescriptionCorruptLongObjectException
(AnyLongObjectId id, AnyLongObjectId contentHash, String message) Corrupt long object detected. -
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:
-
id
-
contentHash
-
-
Constructor Details
-
CorruptLongObjectException
Corrupt long object detected.- Parameters:
id
- id of the long objectcontentHash
- hash of the long object's contentmessage
- aString
object.
-
-
Method Details
-
getId
Get theid
of the object.- Returns:
- the id of the object, i.e. the expected hash of the object's content
-
getContentHash
Get thecontentHash
.- Returns:
- the actual hash of the object's content which doesn't match the object's id when this exception is thrown which signals that the object has been corrupted
-