Package org.opends.admin.ads
Class TopologyCacheException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.opends.server.types.OpenDsException
-
- org.opends.admin.ads.TopologyCacheException
-
- All Implemented Interfaces:
Serializable,org.forgerock.i18n.LocalizableException
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
Nested Classes Modifier and Type Class Description static classTopologyCacheException.TypeError type.
-
Constructor Summary
Constructors Constructor Description TopologyCacheException(TopologyCacheException.Type type, Throwable t)Constructor for a generic Exception.TopologyCacheException(TopologyCacheException.Type type, LdapException e, ApplicationTrustManager trustManager, HostPort ldapHostPort)Constructor for the exception that must be generated when a LdapException occurs.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HostPortgetHostPort()Returns the host port representation of the server we where connected to (or trying to connect) when this exception was generated.ApplicationTrustManagergetTrustManager()Returns the ApplicationTrustManager that we were using when this exception was generated.TopologyCacheException.TypegetType()Returns the type of this exception.-
Methods inherited from class org.opends.server.types.OpenDsException
getMessageObject
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
TopologyCacheException
public TopologyCacheException(TopologyCacheException.Type type, 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, LdapException e, ApplicationTrustManager trustManager, HostPort ldapHostPort)
Constructor for the exception that must be generated when a LdapException occurs.- Parameters:
type- the type of this exception.e- the LdapException that generated this exception.trustManager- the ApplicationTrustManager used when the LdapException occurred.ldapHostPort- the LDAP HostPort of the server we where connected to (or trying to connect) when the LdapException was generated.
-
-
Method Detail
-
getType
public TopologyCacheException.Type getType()
Returns the type of this exception.- Returns:
- the type of this exception.
-
getHostPort
public HostPort 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.
-
-