Top Description Fields Constructors Methods
org.eclipse.persistence.exceptions

public Class CommunicationException

extends EclipseLinkException
Class Inheritance
Imports
org.eclipse.persistence.exceptions.i18n.*, org.eclipse.persistence.internal.helper.Helper

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

Field Summary

Modifier and TypeField and Description
public static final int
public static final int
ERROR_SENDING_CONNECTION_SERVICE

PUBLIC: Creates a CommunicationException.

public static final int
public static final int
public static final int
Inherited from org.eclipse.persistence.exceptions.EclipseLinkException:
CRerrorCodehasBeenLoggedindentationStringinternalExceptionsessionshouldPrintInternalException

Constructor Summary

AccessConstructor and Description
public
public
CommunicationException(String
the detailed message
message
,
Exception
the handle of the exception
internalException
)

PUBLIC: Creates a CommunicationException.

Method Summary

Modifier and TypeMethod and Description
public static CommunicationException
public static CommunicationException
public static CommunicationException
errorSendingMessage(String serviceId, Exception exception)

public static CommunicationException
unableToConnect(String serviceName, Exception exception)

public static CommunicationException
unableToPropagateChanges(String serviceName, Exception exception)

Inherited from org.eclipse.persistence.exceptions.EclipseLinkException:
crgetErrorCodegetIndentationStringgetInternalExceptiongetMessagegetSessiongetUnformattedMessagehasBeenLoggedprintStackTraceprintStackTraceprintStackTracesetErrorCodesetHasBeenLoggedsetIndentationStringsetInternalExceptionsetSessionsetShouldPrintInternalExceptionshouldPrintInternalExceptiontoString

Field Detail

ERROR_IN_INVOCATIONback to summary
public static final int ERROR_IN_INVOCATION
ERROR_SENDING_CONNECTION_SERVICEback to summary
public static final int ERROR_SENDING_CONNECTION_SERVICE

PUBLIC: Creates a CommunicationException.

ERROR_SENDING_MESSAGEback to summary
public static final int ERROR_SENDING_MESSAGE
UNABLE_TO_CONNECTback to summary
public static final int UNABLE_TO_CONNECT
UNABLE_TO_PROPAGATE_CHANGESback to summary
public static final int UNABLE_TO_PROPAGATE_CHANGES

Constructor Detail

CommunicationExceptionback to summary
public CommunicationException(String theMessage)
CommunicationExceptionback to summary
public CommunicationException(String message, Exception internalException)

PUBLIC: Creates a CommunicationException.

Parameters
message:String

the detailed message

internalException:Exception

the handle of the exception

Method Detail

errorInInvocationback to summary
public static CommunicationException errorInInvocation(Exception exception)
errorSendingConnectionServiceback to summary
public static CommunicationException errorSendingConnectionService(String serviceName, Exception exception)
errorSendingMessageback to summary
public static CommunicationException errorSendingMessage(String serviceId, Exception exception)
unableToConnectback to summary
public static CommunicationException unableToConnect(String serviceName, Exception exception)
unableToPropagateChangesback to summary
public static CommunicationException unableToPropagateChanges(String serviceName, Exception exception)