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:
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 Summary
Constructors Constructor Description CorruptMediaFile(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
.Path
getMediaFile()
Get themediaFile
.long
getSize()
Get thesize
.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
getMediaFile
public 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
-
-