Class CorruptLongObjectException

  • All Implemented Interfaces:
    java.io.Serializable

    public class CorruptLongObjectException
    extends java.lang.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 Detail

      • CorruptLongObjectException

        public CorruptLongObjectException​(AnyLongObjectId id,
                                          AnyLongObjectId contentHash,
                                          java.lang.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 Detail

      • 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