javax.rad.remote
Class CommunicationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by javax.rad.remote.CommunicationException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ChangePasswordException, ConnectionException, SessionExpiredException, UnauthorizedException

public class CommunicationException
extends java.lang.RuntimeException

The CommunicationException is a RuntimeException for client/server communication problems.

See Also:
Serialized Form

Constructor Summary
CommunicationException()
          Constructs a new CommunicationException with null as its detail message.
CommunicationException(java.lang.String pMessage)
          Constructs a new CommunicationException with the specified detail message.
CommunicationException(java.lang.String pMessage, java.lang.Throwable pCause)
          Constructs a new CommunicationException with the specified detail message and cause.
CommunicationException(java.lang.Throwable pCause)
          Constructs a new CommunicationException with the specified cause and a detail message of (cause==null ?
 
Method Summary
 AbstractConnection getConnection()
          Gets the connection which received the exception.
 void setConnection(AbstractConnection pConnection)
          Sets the connection which received the exception.
 
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()
Constructs a new CommunicationException with null as its detail message. The cause is not initialized, and may subsequently be initialized by a call to Throwable.initCause(java.lang.Throwable).


CommunicationException

public CommunicationException(java.lang.Throwable pCause)
Constructs a new CommunicationException with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause).

Parameters:
pCause - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)

CommunicationException

public CommunicationException(java.lang.String pMessage)
Constructs a new CommunicationException with the specified detail message. The cause is not initialized, and may subsequently be initialized by a call to Throwable.initCause(java.lang.Throwable).

Parameters:
pMessage - the detail message. The detail message is saved for later retrieval by the Throwable.getMessage() method.

CommunicationException

public CommunicationException(java.lang.String pMessage,
                              java.lang.Throwable pCause)
Constructs a new CommunicationException with the specified detail message and cause.

Note that the detail message associated with cause is not automatically incorporated in this exception's detail message.

Parameters:
pMessage - the detail message (which is saved for later retrieval by the Throwable.getMessage() method).
pCause - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
Method Detail

setConnection

public void setConnection(AbstractConnection pConnection)
Sets the connection which received the exception.

Parameters:
pConnection - the Exception receiver

getConnection

public AbstractConnection getConnection()
Gets the connection which received the exception.

Returns:
the Exception receiver or null if Exception wasn't caught by an AbstractConnection


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.