edu.uiuc.cs.net.DPRPManager
Class DPRPErrorMessageException

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

class DPRPErrorMessageException
extends DPRPException

Generated when the client receives an error message from the server, or if an invalid XID is detected.

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

Field Summary
private  short errorcode
          The errorcode sent from the server.
private static java.lang.String genErr
          A generic error string, for debug-printing.
 
Fields inherited from class java.lang.Throwable
backtrace, detailMessage, serialVersionUID
 
Constructor Summary
DPRPErrorMessageException(DPRPMessage im)
          Constructor from a DPRPMessage.
DPRPErrorMessageException(short err)
          Constructor from an errorcode, used when directly making up this exception for internal use.
 
Method Summary
 short getErrorcode()
          Returns the current errorcode.
 
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 errorcode sent from the server.

genErr

private static final java.lang.String genErr
A generic error string, for debug-printing.
Constructor Detail

DPRPErrorMessageException

public DPRPErrorMessageException(DPRPMessage im)
Constructor from a DPRPMessage. For the time being, all we extract is the flags, which is working quite nicely.

DPRPErrorMessageException

public DPRPErrorMessageException(short err)
Constructor from an errorcode, used when directly making up this exception for internal use.
Method Detail

getErrorcode

public short getErrorcode()
Returns the current errorcode.