Class 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:
  • Field Details

  • Constructor Details

    • CorruptLongObjectException

      public CorruptLongObjectException(AnyLongObjectId id, AnyLongObjectId contentHash, String message)
      Corrupt long object detected.
      Parameters:
      id - id of the long object
      contentHash - hash of the long object's content
      message - a String object.
  • Method Details

    • getId

      public AnyLongObjectId getId()
      Get the id of the object.
      Returns:
      the id of the object, i.e. the expected hash of the object's content
    • getContentHash

      public AnyLongObjectId getContentHash()
      Get the contentHash.
      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