APIdia Launch Partner
Top Description Fields Constructors Methods
javax.naming

public Class CommunicationException

extends NamingException
Class Inheritance

This exception is thrown when the client is unable to communicate with the directory or naming service. The inability to communicate with the service might be a result of many factors, such as network partitioning, hardware or interface problems, failures on either the client or server side. This exception is meant to be used to capture such communication problems.

Synchronization and serialization issues that apply to NamingException apply directly here.

Authors
Rosanna Lee, Scott Seligman
Since
1.3

Field Summary

Modifier and TypeField and Description
private static final long
serialVersionUID

Hides javax.naming.NamingException.serialVersionUID.

Use serialVersionUID from JNDI 1.1.1 for interoperability
Inherited from javax.naming.NamingException:
remainingNameresolvedNameresolvedObjrootException

Constructor Summary

AccessConstructor and Description
public
CommunicationException(String
Additional detail about this exception.
explanation
)

Constructs a new instance of CommunicationException using the arguments supplied.

public
CommunicationException()

Constructs a new instance of CommunicationException.

Method Summary

Inherited from javax.naming.NamingException:
appendRemainingComponentappendRemainingNamegetCausegetExplanationgetRemainingNamegetResolvedNamegetResolvedObjgetRootCauseinitCausesetRemainingNamesetResolvedNamesetResolvedObjsetRootCausetoStringtoString

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides javax.naming.NamingException.serialVersionUID.

Use serialVersionUID from JNDI 1.1.1 for interoperability

Constructor Detail

CommunicationExceptionback to summary
public CommunicationException(String explanation)

Constructs a new instance of CommunicationException using the arguments supplied.

Parameters
explanation:String

Additional detail about this exception.

See Also
java.lang.Throwable#getMessage
CommunicationExceptionback to summary
public CommunicationException()

Constructs a new instance of CommunicationException.