Module org.eclipse.persistence.core
Class CommunicationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.eclipse.persistence.exceptions.EclipseLinkException
org.eclipse.persistence.exceptions.CommunicationException
- All Implemented Interfaces:
Serializable
Purpose:This exception wraps all RMI or CORBA or IO exception that may occur.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
PUBLIC: Creates a CommunicationException.static final int
static final int
static final int
Fields inherited from class org.eclipse.persistence.exceptions.EclipseLinkException
CR, errorCode, hasBeenLogged, indentationString, internalException, session, shouldPrintInternalException
-
Constructor Summary
ConstructorDescriptionCommunicationException
(String theMessage) CommunicationException
(String message, Exception internalException) PUBLIC: Creates a CommunicationException. -
Method Summary
Modifier and TypeMethodDescriptionstatic CommunicationException
errorInInvocation
(Exception exception) static CommunicationException
errorSendingConnectionService
(String serviceName, Exception exception) static CommunicationException
errorSendingMessage
(String serviceId, Exception exception) static CommunicationException
unableToConnect
(String serviceName, Exception exception) static CommunicationException
unableToPropagateChanges
(String serviceName, Exception exception) Methods inherited from class org.eclipse.persistence.exceptions.EclipseLinkException
cr, getErrorCode, getIndentationString, getInternalException, getMessage, getSession, getUnformattedMessage, hasBeenLogged, printStackTrace, printStackTrace, printStackTrace, setErrorCode, setHasBeenLogged, setIndentationString, setInternalException, setSession, setShouldPrintInternalException, shouldPrintInternalException, toString
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, setStackTrace
-
Field Details
-
ERROR_SENDING_CONNECTION_SERVICE
public static final int ERROR_SENDING_CONNECTION_SERVICEPUBLIC: Creates a CommunicationException.- See Also:
-
UNABLE_TO_CONNECT
public static final int UNABLE_TO_CONNECT- See Also:
-
UNABLE_TO_PROPAGATE_CHANGES
public static final int UNABLE_TO_PROPAGATE_CHANGES- See Also:
-
ERROR_IN_INVOCATION
public static final int ERROR_IN_INVOCATION- See Also:
-
ERROR_SENDING_MESSAGE
public static final int ERROR_SENDING_MESSAGE- See Also:
-
-
Constructor Details
-
CommunicationException
-
CommunicationException
PUBLIC: Creates a CommunicationException.- Parameters:
message
- the detailed messageinternalException
- the handle of the exception
-
-
Method Details
-
errorSendingConnectionService
public static CommunicationException errorSendingConnectionService(String serviceName, Exception exception) -
unableToConnect
-
unableToPropagateChanges
public static CommunicationException unableToPropagateChanges(String serviceName, Exception exception) -
errorInInvocation
-
errorSendingMessage
-