at.spardat.xma.boot.transport
Class CommunicationException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.io.IOException
              extended byat.spardat.xma.boot.transport.CommunicationException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ConnectException, ServerException

public class CommunicationException
extends java.io.IOException

Thrown by Transport, if anything goes wrong in the communication with the server.

See Also:
Serialized Form

Constructor Summary
CommunicationException(java.lang.Exception exc)
          Constructs an CommunicationException with the specified detail Exception.
CommunicationException(java.lang.Exception exc, int returnCode)
          Constructs an CommunicationException with the specified detail Exception and Http-Returncode.
CommunicationException(int returnCode)
          Constructs an CommunicationException with the specified Http-Returncode.
CommunicationException(java.lang.String message)
          Constructs an CommunicationException with the specified detail message.
CommunicationException(java.lang.String message, java.lang.Exception exc)
          Constructs an CommunicationException with the specified mesage and detail Exception.
CommunicationException(java.lang.String message, java.lang.Exception exc, int returnCode)
          Constructs an CommunicationException with the specified message, detail Exception and Http-Returncode.
CommunicationException(java.lang.String message, int returnCode)
          Constructs an CommunicationException with the specified detail message and Http-Returncode.
 
Method Summary
 int getReturnCode()
           
 void setReturnCode(int returnCode)
           
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CommunicationException

public CommunicationException(java.lang.Exception exc)
Constructs an CommunicationException with the specified detail Exception. The message of the detail exception is used as message of the CommunicationException.

Parameters:
exc - the detail exception.

CommunicationException

public CommunicationException(java.lang.String message)
Constructs an CommunicationException with the specified detail message.

Parameters:
message - the detail message.

CommunicationException

public CommunicationException(java.lang.String message,
                              java.lang.Exception exc)
Constructs an CommunicationException with the specified mesage and detail Exception.

Parameters:
message - the detail message.
exc - the detail exception.

CommunicationException

public CommunicationException(java.lang.String message,
                              java.lang.Exception exc,
                              int returnCode)
Constructs an CommunicationException with the specified message, detail Exception and Http-Returncode. The message of the CommunicationException is composed of the detail message and the returncode.

Parameters:
message - the detail message
exc - the detail exception
returnCode - the HTTP-Returncode send by the server

CommunicationException

public CommunicationException(java.lang.Exception exc,
                              int returnCode)
Constructs an CommunicationException with the specified detail Exception and Http-Returncode. The message of the CommunicationException is composed of the message of the detail exception and the returncode.

Parameters:
exc - the detail exception
returnCode - the HTTP-Returncode send by the server

CommunicationException

public CommunicationException(java.lang.String message,
                              int returnCode)
Constructs an CommunicationException with the specified detail message and Http-Returncode. The message of the CommunicationException is composed of the detail message and the returncode.

Parameters:
message - the detail message
returnCode - the HTTP-Returncode send by the server

CommunicationException

public CommunicationException(int returnCode)
Constructs an CommunicationException with the specified Http-Returncode. The message of the CommunicationException is composed of the returncode.

Parameters:
returnCode - the HTTP-Returncode send by the server
Method Detail

getReturnCode

public int getReturnCode()
Returns:
Returns the returnCode.

setReturnCode

public void setReturnCode(int returnCode)
Parameters:
returnCode - The returnCode to set.