Package org.apache.hadoop.hdfs
Class CannotObtainBlockLengthException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.apache.hadoop.hdfs.CannotObtainBlockLengthException
- All Implemented Interfaces:
Serializable
This exception is thrown when the length of a LocatedBlock instance
can not be obtained.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCannotObtainBlockLengthException(String message) CannotObtainBlockLengthException(org.apache.hadoop.hdfs.protocol.LocatedBlock locatedBlock) Constructs anCannotObtainBlockLengthExceptionwith the specified LocatedBlock that failed to obtain block length.CannotObtainBlockLengthException(org.apache.hadoop.hdfs.protocol.LocatedBlock locatedBlock, String src) Constructs anCannotObtainBlockLengthExceptionwith the specified LocatedBlock and file that failed to obtain block length. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CannotObtainBlockLengthException
public CannotObtainBlockLengthException() -
CannotObtainBlockLengthException
-
CannotObtainBlockLengthException
public CannotObtainBlockLengthException(org.apache.hadoop.hdfs.protocol.LocatedBlock locatedBlock) Constructs anCannotObtainBlockLengthExceptionwith the specified LocatedBlock that failed to obtain block length.- Parameters:
locatedBlock- The LocatedBlock instance which block length can not be obtained
-
CannotObtainBlockLengthException
public CannotObtainBlockLengthException(org.apache.hadoop.hdfs.protocol.LocatedBlock locatedBlock, String src) Constructs anCannotObtainBlockLengthExceptionwith the specified LocatedBlock and file that failed to obtain block length.- Parameters:
locatedBlock- The LocatedBlock instance which block length can not be obtainedsrc- The file which include this block
-