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:
java.io.Serializable
public class CorruptLongObjectException extends java.lang.IllegalArgumentExceptionThrown when an object id is given that doesn't match the hash of the object's content- Since:
- 4.3
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private AnyLongObjectIdcontentHashprivate AnyLongObjectIdidprivate static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description CorruptLongObjectException(AnyLongObjectId id, AnyLongObjectId contentHash, java.lang.String message)Corrupt long object detected.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnyLongObjectIdgetContentHash()Get thecontentHash.AnyLongObjectIdgetId()Get theidof the object.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
id
private final AnyLongObjectId id
-
contentHash
private final AnyLongObjectId contentHash
-
-
Constructor Detail
-
CorruptLongObjectException
public CorruptLongObjectException(AnyLongObjectId id, AnyLongObjectId contentHash, java.lang.String message)
Corrupt long object detected.- Parameters:
id- id of the long objectcontentHash- hash of the long object's contentmessage- aStringobject.
-
-
Method Detail
-
getId
public AnyLongObjectId getId()
Get theidof the object.- Returns:
- the id of the object, i.e. the expected hash of the object's content
-
getContentHash
public AnyLongObjectId 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
-
-