Class CorruptMediaFile

  • All Implemented Interfaces:
    Serializable

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

      • CorruptMediaFile

        public CorruptMediaFile​(Path mediaFile,
                                long expectedSize,
                                long size)

        Constructor for CorruptMediaFile.

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

      • getMediaFile

        public 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