EclipseLink 1.2.0, build 'v20091016-r5565' API Reference

org.eclipse.persistence.exceptions
Class CommunicationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.eclipse.persistence.exceptions.EclipseLinkException
                  extended by org.eclipse.persistence.exceptions.CommunicationException
All Implemented Interfaces:
java.io.Serializable

public class CommunicationException
extends EclipseLinkException

Purpose:This exception wraps all RMI or CORBA or IO exception that may occur.

See Also:
Serialized Form

Field Summary
static int ERROR_IN_INVOCATION
           
static int ERROR_SENDING_CONNECTION_SERVICE
          PUBLIC: Creates a CommunicationException.
static int ERROR_SENDING_MESSAGE
           
static int UNABLE_TO_CONNECT
           
static int UNABLE_TO_PROPAGATE_CHANGES
           
 
Fields inherited from class org.eclipse.persistence.exceptions.EclipseLinkException
CR, errorCode, hasBeenLogged, indentationString, internalException, session, shouldPrintInternalException
 
Constructor Summary
CommunicationException(java.lang.String theMessage)
           
CommunicationException(java.lang.String message, java.lang.Exception internalException)
          PUBLIC: Creates a CommunicationException.
 
Method Summary
static CommunicationException errorInInvocation(java.lang.Exception exception)
           
static CommunicationException errorSendingConnectionService(java.lang.String serviceName, java.lang.Exception exception)
           
static CommunicationException errorSendingMessage(java.lang.String serviceId, java.lang.Exception exception)
           
static CommunicationException unableToConnect(java.lang.String serviceName, java.lang.Exception exception)
           
static CommunicationException unableToPropagateChanges(java.lang.String serviceName, java.lang.Exception exception)
           
 
Methods inherited from class org.eclipse.persistence.exceptions.EclipseLinkException
cr, getErrorCode, getIndentationString, getInternalException, getMessage, getSession, hasBeenLogged, printStackTrace, printStackTrace, printStackTrace, setErrorCode, setHasBeenLogged, setIndentationString, setInternalException, setSession, setShouldPrintInternalException, shouldPrintInternalException, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ERROR_SENDING_CONNECTION_SERVICE

public static final int ERROR_SENDING_CONNECTION_SERVICE
PUBLIC: Creates a CommunicationException.

See Also:
Constant Field Values

UNABLE_TO_CONNECT

public static final int UNABLE_TO_CONNECT
See Also:
Constant Field Values

UNABLE_TO_PROPAGATE_CHANGES

public static final int UNABLE_TO_PROPAGATE_CHANGES
See Also:
Constant Field Values

ERROR_IN_INVOCATION

public static final int ERROR_IN_INVOCATION
See Also:
Constant Field Values

ERROR_SENDING_MESSAGE

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

CommunicationException

public CommunicationException(java.lang.String theMessage)

CommunicationException

public CommunicationException(java.lang.String message,
                              java.lang.Exception internalException)
PUBLIC: Creates a CommunicationException.

Parameters:
theMessage - the detailed message
internalException - the handle of the exception
Method Detail

errorSendingConnectionService

public static CommunicationException errorSendingConnectionService(java.lang.String serviceName,
                                                                   java.lang.Exception exception)

unableToConnect

public static CommunicationException unableToConnect(java.lang.String serviceName,
                                                     java.lang.Exception exception)

unableToPropagateChanges

public static CommunicationException unableToPropagateChanges(java.lang.String serviceName,
                                                              java.lang.Exception exception)

errorInInvocation

public static CommunicationException errorInInvocation(java.lang.Exception exception)

errorSendingMessage

public static CommunicationException errorSendingMessage(java.lang.String serviceId,
                                                         java.lang.Exception exception)

EclipseLink 1.2.0, build 'v20091016-r5565' API Reference