com.onionnetworks.fec.io
Class BlockAlreadyDecodedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by com.onionnetworks.fec.io.BlockAlreadyDecodedException
All Implemented Interfaces:
java.io.Serializable

public class BlockAlreadyDecodedException
extends java.io.IOException

This exception signals that there was an attempt to write a packet to a block that has already been decoded. (c) Copyright 2001 Onion Networks (c) Copyright 2000 OpenCola

Author:
Justin F. Chapweske (justin@chapweske.com)
See Also:
Serialized Form

Constructor Summary
BlockAlreadyDecodedException(int blockNum, int stripeNum)
          Constructs a new Exception
BlockAlreadyDecodedException(java.lang.String msg, int blockNum, int stripeNum)
          Constructs a new Exception
 
Method Summary
 int getBlockNum()
           
 int getStripeNum()
           
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BlockAlreadyDecodedException

public BlockAlreadyDecodedException(int blockNum,
                                    int stripeNum)
Constructs a new Exception

Parameters:
blockNum - The blockNum of the attempted packet
stripeNum - The stripeNum of the attempted packet

BlockAlreadyDecodedException

public BlockAlreadyDecodedException(java.lang.String msg,
                                    int blockNum,
                                    int stripeNum)
Constructs a new Exception

Parameters:
blockNum - The blockNum of the attempted packet
stripeNum - The stripeNum of the attempted packet
msg - An informational message to include
Method Detail

getBlockNum

public int getBlockNum()
Returns:
The blockNum of the attempted packet.

getStripeNum

public int getStripeNum()
Returns:
the stripeNum of the attempted packet.


Copyright © 2002 Onion Networks. All Rights Reserved.