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
public class CorruptLongObjectException extends IllegalArgumentException
Thrown when an object id is given that doesn't match the hash of the object's content- Since:
- 4.3
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CorruptLongObjectException(AnyLongObjectId id, AnyLongObjectId contentHash, String message)
Corrupt long object detected.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnyLongObjectId
getContentHash()
Get thecontentHash
.AnyLongObjectId
getId()
Get theid
of the object.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
CorruptLongObjectException
public CorruptLongObjectException(AnyLongObjectId id, AnyLongObjectId contentHash, String message)
Corrupt long object detected.- Parameters:
id
- id of the long objectcontentHash
- hash of the long object's contentmessage
- aString
object.
-
-
Method Detail
-
getId
public AnyLongObjectId getId()
Get theid
of 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
-
-