Package org.eclipse.jgit.lfs.errors
Class CorruptMediaFile
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- org.eclipse.jgit.lfs.errors.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
-
-
Field Summary
Fields Modifier and Type Field Description private long
expectedSize
private java.nio.file.Path
mediaFile
private static long
serialVersionUID
private long
size
-
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 theexpectedSize
.java.nio.file.Path
getMediaFile()
Get themediaFile
.long
getSize()
Get thesize
.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
mediaFile
private java.nio.file.Path mediaFile
-
expectedSize
private long expectedSize
-
size
private long size
-
-
Method Detail
-
getMediaFile
public java.nio.file.Path getMediaFile()
Get themediaFile
.- Returns:
- the media file which seems to be corrupt
-
getExpectedSize
public long getExpectedSize()
Get theexpectedSize
.- Returns:
- the expected size of the media file
-
getSize
public long getSize()
Get thesize
.- Returns:
- the actual size of the media file in the file system
-
-