Top Description Fields Constructors Methods
org.eclipse.jgit.lfs.errors

public Class CorruptLongObjectException

extends IllegalArgumentException
Class Inheritance
Imports
org.eclipse.jgit.lfs.lib.AnyLongObjectId

Thrown when an object id is given that doesn't match the hash of the object's content
Since
4.3

Field Summary

Modifier and TypeField and Description
private final AnyLongObjectId
private final AnyLongObjectId
private static final long

Constructor Summary

AccessConstructor and Description
public
CorruptLongObjectException(AnyLongObjectId
id of the long object
id
,
AnyLongObjectId
hash of the long object's content
contentHash
,
String message)

Corrupt long object detected.

Method Summary

Modifier and TypeMethod and Description
public AnyLongObjectId

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
getContentHash
()

Get the contentHash.

public AnyLongObjectId

Returns:

the id of the object, i.e. the expected hash of the object's content
getId
()

Get the id of the object.

Field Detail

contentHashback to summary
private final AnyLongObjectId contentHash
idback to summary
private final AnyLongObjectId id
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.IllegalArgumentException.serialVersionUID.

Constructor Detail

CorruptLongObjectExceptionback to summary
public CorruptLongObjectException(AnyLongObjectId id, AnyLongObjectId contentHash, String message)

Corrupt long object detected.

Parameters
id:AnyLongObjectId

id of the long object

contentHash:AnyLongObjectId

hash of the long object's content

message:String

a java.lang.String object.

Method Detail

getContentHashback to summary
public AnyLongObjectId getContentHash()

Get the contentHash.

Returns:AnyLongObjectId

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

getIdback to summary
public AnyLongObjectId getId()

Get the id of the object.

Returns:AnyLongObjectId

the id of the object, i.e. the expected hash of the object's content