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.IOExceptionThrown 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 longexpectedSizeprivate java.nio.file.PathmediaFileprivate static longserialVersionUIDprivate longsize
-
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 longgetExpectedSize()Get theexpectedSize.java.nio.file.PathgetMediaFile()Get themediaFile.longgetSize()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
-
-