Package org.apache.hadoop.hdfs
Class BlockMissingException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.apache.hadoop.hdfs.BlockMissingException
- All Implemented Interfaces:
Serializable
This exception is thrown when a read encounters a block that has no
locations associated with it.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBlockMissingException(String filename, String description, long offset) An exception that indicates that file was corrupted. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
BlockMissingException
An exception that indicates that file was corrupted.- Parameters:
filename- name of corrupted filedescription- a description of the corruption details
-
-
Method Details
-
getFile
Returns the name of the corrupted file.- Returns:
- name of corrupted file
-
getOffset
public long getOffset()Returns the offset at which this file is corrupted- Returns:
- offset of corrupted file
-