edu.harvard.deas.hyperenc
Class BlockMissingException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by edu.harvard.deas.hyperenc.EncryptionException
              extended by edu.harvard.deas.hyperenc.BlockMissingException
All Implemented Interfaces:
Serializable

public class BlockMissingException
extends EncryptionException

Thrown when a hyper-encryption operation cannot proceed because a required block is not available.

See Also:
Serialized Form

Constructor Summary
BlockMissingException(List<Integer> missingIDs, String message)
          Constructs a new BlockMissingException.
BlockMissingException(List<Integer> missingIDs, String message, Throwable cause)
          Constructs a new BlockMissingException.
 
Method Summary
 List<Integer> getMissingIDList()
          Returns an unmodifiable copy of the list of missing block IDs.
 
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(List<Integer> missingIDs,
                             String message)
Constructs a new BlockMissingException.

Parameters:
missingIDs - a list of one or more of the missing IDs that caused this exception to be thrown
message - the detail message

BlockMissingException

public BlockMissingException(List<Integer> missingIDs,
                             String message,
                             Throwable cause)
Constructs a new BlockMissingException.

Parameters:
missingIDs - a list of one or more of the missing IDs that caused this exception to be thrown
message - the detail message
cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
Method Detail

getMissingIDList

public List<Integer> getMissingIDList()
Returns an unmodifiable copy of the list of missing block IDs.

Returns:
the list of missing block IDs