org.demac.transport
Class TransportException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by org.demac.transport.TransportException
All Implemented Interfaces:
java.io.Serializable

public class TransportException
extends java.io.IOException

Exception which indecates failures of transport service of the DEMAC architecture.

See Also:
Serialized Form

Field Summary
static int SEVERE
           
static int WARNING
           
 
Constructor Summary
TransportException()
          Constructor to create a new exception.
TransportException(int level)
          Constructor to create a new exception with a given exception level, currently out of: SEVERE, WARNING.
TransportException(java.lang.String str)
          Constructor to create a new exception with a given string.
TransportException(java.lang.String str, int level)
          Constructor to create a new exception with a given string and a given exception level, currently out of: SEVERE, WARNING.
 
Method Summary
 int getExceptionLevel()
           
 
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

SEVERE

public static final int SEVERE
See Also:
Constant Field Values

WARNING

public static final int WARNING
See Also:
Constant Field Values
Constructor Detail

TransportException

public TransportException()
Constructor to create a new exception.


TransportException

public TransportException(int level)
Constructor to create a new exception with a given exception level, currently out of: SEVERE, WARNING. The default is WARNING.

Parameters:
level - the level of the exception

TransportException

public TransportException(java.lang.String str)
Constructor to create a new exception with a given string.

Parameters:
str - an explanation of the failure

TransportException

public TransportException(java.lang.String str,
                          int level)
Constructor to create a new exception with a given string and a given exception level, currently out of: SEVERE, WARNING. The default is WARNING.

Parameters:
str - an explanation of the failure
level - the level of the exception
Method Detail

getExceptionLevel

public int getExceptionLevel()