edu.uiuc.cs.net.DPRPManager
Class DPRPAllocatePortException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--edu.uiuc.cs.net.DPRPManager.DPRPException
                    |
                    +--edu.uiuc.cs.net.DPRPManager.DPRPAllocatePortException
All Implemented Interfaces:
java.io.Serializable

class DPRPAllocatePortException
extends DPRPException

This exception is used to notify the server that a problem occured in reserving the external port on the gateway. In the current incarnation, this means that something went wrong exec'ing the iptables command for netfilter.

Version:
1.0 - October 30th, 2001
Author:
Andy Reitz (areitz@cs.uiuc.edu)
See Also:
Serialized Form

Field Summary
private  short errorcode
          The DPRPError -- i.e., the reason behind this exception.
private  boolean hasText
          Flag that denotes if extra text is available.
private  java.lang.String optionalText
          Any optional text, included so that I didn't have to go making a whole bunch of new DPRPErrors.
 
Fields inherited from class java.lang.Throwable
backtrace, detailMessage, serialVersionUID
 
Constructor Summary
DPRPAllocatePortException(short ec)
          Constructor for an exception with just an errorcode.
DPRPAllocatePortException(short ec, java.lang.String extraText)
          Constructor for an exception with an errorcode and optional text.
 
Method Summary
 short getErrorcode()
          Gets the errorcode.
 java.lang.String getExtraText()
          Gets the extra text.
 boolean hasExtraText()
          Returns true if extra text has been attached.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, printStackTrace0, toString
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

errorcode

private short errorcode
The DPRPError -- i.e., the reason behind this exception.

optionalText

private java.lang.String optionalText
Any optional text, included so that I didn't have to go making a whole bunch of new DPRPErrors.

hasText

private boolean hasText
Flag that denotes if extra text is available.
Constructor Detail

DPRPAllocatePortException

public DPRPAllocatePortException(short ec)
Constructor for an exception with just an errorcode.
Parameters:
ec - The errorcode to attach to this exception.

DPRPAllocatePortException

public DPRPAllocatePortException(short ec,
                                 java.lang.String extraText)
Constructor for an exception with an errorcode and optional text.
Parameters:
ec - The errorcode to attach to this exception.
extraText - The extra descriptive bits to attach.
Method Detail

hasExtraText

public boolean hasExtraText()
Returns true if extra text has been attached.

getExtraText

public java.lang.String getExtraText()
Gets the extra text.

getErrorcode

public short getErrorcode()
Gets the errorcode.