org.eclipse.jgit.storage.dht
Class DhtMissingChunkException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by org.eclipse.jgit.storage.dht.DhtException
                  extended by org.eclipse.jgit.storage.dht.DhtMissingChunkException
All Implemented Interfaces:
java.io.Serializable

public class DhtMissingChunkException
extends DhtException

Indicates a PackChunk doesn't exist in the database.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.jgit.storage.dht.DhtException
DhtException.TODO
 
Constructor Summary
DhtMissingChunkException(ChunkKey key)
          Initialize a new missing chunk exception.
DhtMissingChunkException(ChunkKey key, java.lang.Throwable why)
          Initialize a new missing chunk exception.
 
Method Summary
 ChunkKey getChunkKey()
           
 
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

DhtMissingChunkException

public DhtMissingChunkException(ChunkKey key)
Initialize a new missing chunk exception.

Parameters:
key - the key of the chunk that is not found.

DhtMissingChunkException

public DhtMissingChunkException(ChunkKey key,
                                java.lang.Throwable why)
Initialize a new missing chunk exception.

Parameters:
key - the key of the chunk that is not found.
why - reason the chunk is missing. This may be an explanation about low-level data corruption in the database.
Method Detail

getChunkKey

public ChunkKey getChunkKey()
Returns:
key of the chunk that is missing.


Copyright © 2011. All Rights Reserved.