org.opends.admin.ads
Class TopologyCacheException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.opends.server.types.OpenDsException
              extended by org.opends.admin.ads.TopologyCacheException
All Implemented Interfaces:
java.io.Serializable

public class TopologyCacheException
extends OpenDsException

This class represents the Exception that can occur while reading server configuration through the TopologyCache class.

See Also:
Serialized Form

Nested Class Summary
static class TopologyCacheException.Type
          Error type.
 
Constructor Summary
TopologyCacheException(ADSContextException ace)
          Constructor for the exception that must be generated when an ADSContextException occurs.
TopologyCacheException(TopologyCacheException.Type type, javax.naming.NamingException ne, ApplicationTrustManager trustManager, java.lang.String ldapUrl)
          Constructor for the exception that must be generated when a NamingException occurs.
TopologyCacheException(TopologyCacheException.Type type, java.lang.Throwable t)
          Constructor for a generic Exception.
 
Method Summary
 java.lang.String getHostPort()
          Returns the host port representation of the server we where connected to (or trying to connect) when this exception was generated.
 java.lang.String getLdapUrl()
          Returns the LDAP URL of the server we where connected to (or trying to connect) when this exception was generated.
 ApplicationTrustManager getTrustManager()
          Returns the ApplicationTrustManager that we were using when this exception was generated.
 TopologyCacheException.Type getType()
          Returns the type of this exception.
 
Methods inherited from class org.opends.server.types.OpenDsException
getMessageObject
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TopologyCacheException

public TopologyCacheException(ADSContextException ace)
Constructor for the exception that must be generated when an ADSContextException occurs.

Parameters:
ace - the exception which is the cause of this exception.

TopologyCacheException

public TopologyCacheException(TopologyCacheException.Type type,
                              java.lang.Throwable t)
Constructor for a generic Exception.

Parameters:
type - the type of this exception.
t - the cause of this exception.

TopologyCacheException

public TopologyCacheException(TopologyCacheException.Type type,
                              javax.naming.NamingException ne,
                              ApplicationTrustManager trustManager,
                              java.lang.String ldapUrl)
Constructor for the exception that must be generated when a NamingException occurs.

Parameters:
type - the type of this exception.
ne - the NamingException that generated this exception.
trustManager - the ApplicationTrustManager used when the NamingException occurred.
ldapUrl - the LDAP URL of the server we where connected to (or trying to connect) when the NamingException was generated.
Method Detail

getType

public TopologyCacheException.Type getType()
Returns the type of this exception.

Returns:
the type of this exception.

getLdapUrl

public java.lang.String getLdapUrl()
Returns the LDAP URL of the server we where connected to (or trying to connect) when this exception was generated.

Returns:
the LDAP URL of the server we where connected to (or trying to connect) when this exception was generated.

getHostPort

public java.lang.String getHostPort()
Returns the host port representation of the server we where connected to (or trying to connect) when this exception was generated.

Returns:
the host port representation of the server we where connected to (or trying to connect) when this exception was generated.

getTrustManager

public ApplicationTrustManager getTrustManager()
Returns the ApplicationTrustManager that we were using when this exception was generated.

Returns:
the ApplicationTrustManager that we were using when this exception was generated.