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
Thrown when a LFS mediafile is found which doesn't have the expected size
- Since:
- 4.6
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate long
private Path
private static final long
private long
-
Constructor Summary
ConstructorsConstructorDescriptionCorruptMediaFile
(Path mediaFile, long expectedSize, long size) Constructor for CorruptMediaFile. -
Method Summary
Modifier and TypeMethodDescriptionlong
Get theexpectedSize
.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
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
mediaFile
-
expectedSize
private long expectedSize -
size
private long size
-
-
Constructor Details
-
CorruptMediaFile
Constructor for CorruptMediaFile.
- Parameters:
mediaFile
- aPath
object.expectedSize
- a long.size
- a long.
-
-
Method Details
-
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
-