- 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
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
Fields Modifier and Type Field Description static intERROR_IN_INVOCATIONstatic intERROR_SENDING_CONNECTION_SERVICEPUBLIC: Creates a CommunicationException.static intERROR_SENDING_MESSAGEstatic intUNABLE_TO_CONNECTstatic intUNABLE_TO_PROPAGATE_CHANGES-
Fields inherited from class org.eclipse.persistence.exceptions.EclipseLinkException
CR, errorCode, hasBeenLogged, indentationString, internalException, session, shouldPrintInternalException
-
-
Constructor Summary
Constructors Constructor Description CommunicationException(String theMessage)CommunicationException(String message, Exception internalException)PUBLIC: Creates a CommunicationException.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CommunicationExceptionerrorInInvocation(Exception exception)static CommunicationExceptionerrorSendingConnectionService(String serviceName, Exception exception)static CommunicationExceptionerrorSendingMessage(String serviceId, Exception exception)static CommunicationExceptionunableToConnect(String serviceName, Exception exception)static CommunicationExceptionunableToPropagateChanges(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 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(String theMessage)
-
-
Method Detail
-
errorSendingConnectionService
public static CommunicationException errorSendingConnectionService(String serviceName, Exception exception)
-
unableToConnect
public static CommunicationException unableToConnect(String serviceName, Exception exception)
-
unableToPropagateChanges
public static CommunicationException unableToPropagateChanges(String serviceName, Exception exception)
-
errorInInvocation
public static CommunicationException errorInInvocation(Exception exception)
-
errorSendingMessage
public static CommunicationException errorSendingMessage(String serviceId, Exception exception)
-
-