unsw.cse.mica
Class TransportException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by unsw.cse.mica.MicaException
              extended by unsw.cse.mica.TransportException
All Implemented Interfaces:
java.io.Serializable

public class TransportException
extends MicaException

An exception class to indicate a problem with the transport. This may be on of:

Author:
jhw
See Also:
Serialized Form

Field Summary
static java.lang.String ALREADYCONNECTED
          A constant string used to indicate an attempt to connect when already connected
static java.lang.String CONNECTIONBROKEN
          A constant string used to indicate a that a connection has been broken.
static java.lang.String NOTCONNECTED
          A constant string used to indicate an attempt to perform an action (other than connecting) when not connected
 
Constructor Summary
TransportException(java.lang.Exception cause)
          Create a new chainingTransportException with the given cause
TransportException(java.lang.String msg)
          Create a new TransportException with the given description
TransportException(java.lang.String msg, java.lang.Exception cause)
          Create a new TransportException with the given description and cause
 
Method Summary
 
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
 

Field Detail

NOTCONNECTED

public static final java.lang.String NOTCONNECTED
A constant string used to indicate an attempt to perform an action (other than connecting) when not connected

See Also:
Constant Field Values

ALREADYCONNECTED

public static final java.lang.String ALREADYCONNECTED
A constant string used to indicate an attempt to connect when already connected

See Also:
Constant Field Values

CONNECTIONBROKEN

public static final java.lang.String CONNECTIONBROKEN
A constant string used to indicate a that a connection has been broken.

See Also:
Constant Field Values
Constructor Detail

TransportException

public TransportException(java.lang.String msg)
Create a new TransportException with the given description

Parameters:
msg - the descrpition of the problem

TransportException

public TransportException(java.lang.Exception cause)
Create a new chainingTransportException with the given cause

Parameters:
cause - the exception that is being chained

TransportException

public TransportException(java.lang.String msg,
                          java.lang.Exception cause)
Create a new TransportException with the given description and cause

Parameters:
msg - the descrpition of the problem
cause - the exception that is being chained.