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
@InterfaceAudience.Private
@InterfaceStability.Evolving
public class BlockMissingException
- extends IOException
This exception is thrown when a read encounters a block that has no locations
associated with it.
- See Also:
- Serialized Form
Method Summary |
String |
getFile()
Returns the name of the corrupted file. |
long |
getOffset()
Returns the offset at which this file is corrupted |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
BlockMissingException
public BlockMissingException(String filename,
String description,
long offset)
- An exception that indicates that file was corrupted.
- Parameters:
filename
- name of corrupted filedescription
- a description of the corruption details
getFile
public String 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
Copyright © 2009 The Apache Software Foundation