Class CorruptMediaFile

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.eclipse.jgit.lfs.errors.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:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • mediaFile

      private Path mediaFile
    • expectedSize

      private long expectedSize
    • size

      private long size
  • Constructor Details

    • CorruptMediaFile

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

      Constructor for CorruptMediaFile.

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

    • 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