Class 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
    • 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

      • 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.