Class CannotObtainBlockLengthException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.apache.hadoop.hdfs.CannotObtainBlockLengthException
All Implemented Interfaces:
Serializable

@Public @Unstable public class CannotObtainBlockLengthException extends IOException
This exception is thrown when the length of a LocatedBlock instance can not be obtained.
See Also:
  • Constructor Details

    • CannotObtainBlockLengthException

      public CannotObtainBlockLengthException()
    • CannotObtainBlockLengthException

      public CannotObtainBlockLengthException(String message)
    • CannotObtainBlockLengthException

      public CannotObtainBlockLengthException(org.apache.hadoop.hdfs.protocol.LocatedBlock locatedBlock)
      Constructs an CannotObtainBlockLengthException with 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 an CannotObtainBlockLengthException with the specified LocatedBlock and file that failed to obtain block length.
      Parameters:
      locatedBlock - The LocatedBlock instance which block length can not be obtained
      src - The file which include this block