Skip navigation links

OracleVirtual Directory Java API Reference
11g Release 1 (11.1.1)

E10688-02


com.octetstring.vde.util
Class DirectoryException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.octetstring.vde.util.DirectoryException

All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ChainException, DirectoryBindException, DirectorySchemaViolation, InvalidDNException

public class DirectoryException
extends java.lang.Exception

Top-level Exception for Directory Operations

See Also:
Serialized Form

Constructor Summary
DirectoryException()
          Build a general exception.
DirectoryException(int code)
          Construct a directory exception based on an LDAP error code.
DirectoryException(int code, java.lang.String message)
          Construct a directory exception based on LDAP error code and supplementary error text.
DirectoryException(javax.naming.NamingException namingException)
           
DirectoryException(java.lang.String message)
          Construct a directory exception based on string error alone

 

Method Summary
 int getLDAPErrorCode()
           
 void setLDAPErrorCode(int code)
           

 

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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Constructor Detail

DirectoryException

public DirectoryException()
Build a general exception. Use setLDAPErrorCode() to set exception.

DirectoryException

public DirectoryException(javax.naming.NamingException namingException)

DirectoryException

public DirectoryException(int code)
Construct a directory exception based on an LDAP error code.
Parameters:
code - Is an integer representing the desired error code.

DirectoryException

public DirectoryException(int code,
                          java.lang.String message)
Construct a directory exception based on LDAP error code and supplementary error text.
Parameters:
code - Is an integer representing the LDAP error code
message - additional String text explaining the error (returned to client)

DirectoryException

public DirectoryException(java.lang.String message)
Construct a directory exception based on string error alone
Parameters:
message - a String representing the error condition.

Method Detail

getLDAPErrorCode

public int getLDAPErrorCode()
Returns:
an integer representing the LDAP Error code.

setLDAPErrorCode

public void setLDAPErrorCode(int code)
Parameters:
code - integer representing the LDAP error number to be set

Skip navigation links

OracleVirtual Directory Java API Reference
11g Release 1 (11.1.1)

E10688-02


Copyright © 2000-2009 Oracle. All Rights Reserved.