Class CorruptMediaFile

  • All Implemented Interfaces:
    java.io.Serializable

    public class CorruptMediaFile
    extends java.io.IOException
    Thrown when a LFS mediafile is found which doesn't have the expected size
    Since:
    4.6
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      CorruptMediaFile​(java.nio.file.Path mediaFile, long expectedSize, long size)
      Constructor for CorruptMediaFile.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getExpectedSize()
      Get the expectedSize.
      java.nio.file.Path getMediaFile()
      Get the mediaFile.
      long getSize()
      Get the size.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • mediaFile

        private java.nio.file.Path mediaFile
      • expectedSize

        private long expectedSize
      • size

        private long size
    • Constructor Detail

      • CorruptMediaFile

        public CorruptMediaFile​(java.nio.file.Path mediaFile,
                                long expectedSize,
                                long size)

        Constructor for CorruptMediaFile.

        Parameters:
        mediaFile - a Path object.
        expectedSize - a long.
        size - a long.
    • Method Detail

      • getMediaFile

        public java.nio.file.Path getMediaFile()
        Get the mediaFile.
        Returns:
        the media file which seems to be corrupt
      • getExpectedSize

        public long getExpectedSize()
        Get the expectedSize.
        Returns:
        the expected size of the media file
      • getSize

        public long getSize()
        Get the size.
        Returns:
        the actual size of the media file in the file system