org.apache.hadoop.hdfs
Class BlockMissingException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by 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

Constructor Summary
BlockMissingException(String filename, String description, long offset)
          An exception that indicates that file was corrupted.
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BlockMissingException

public BlockMissingException(String filename,
                             String description,
                             long offset)
An exception that indicates that file was corrupted.

Parameters:
filename - name of corrupted file
description - a description of the corruption details
Method Detail

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