Oracle Internet Directory API Reference
10g(9.0.4)

B10423-01

oracle.ldap.util
Class UtilException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--oracle.ldap.util.UtilException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AccessDeniedException, AuthFailureException, CommunicationErrorException, GeneralErrorException, InvalidRootOrclctxException, InvalidSubscriberOrclctxException, MultipleSubscriberException, MultipleUserException, NoGroupMembersException, NoSuchGroupException, NoSuchSubscriberException, NoSuchUserException, ParameterException, PasswordPolicyException, SetPropertiesException, SubscriberNotFoundException

public class UtilException
extends java.lang.Exception

This is the superclass of all exceptions defined in oracle.ldap.util package

See Also:
Serialized Form

Method Summary
 int getLDAPErrorCode()
          Returns the LDAP error code from the exception if it is available
 int getPasswordPolicyErrorCode()
          Returns the password policy error code from the exception if it is available
 boolean hasLDAPErrorCode()
          Returns true if the error string contains an LDAP error code.
 boolean hasPasswordPolicyError()
          Returns true if the LDAP error code indictates a password policy error.
 boolean isNamingException()
          Determines if the exception stored is a NamingException.
 javax.naming.NamingException returnNamingException()
           

 

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

 

Method Detail

returnNamingException

public javax.naming.NamingException returnNamingException()

isNamingException

public boolean isNamingException()
Determines if the exception stored is a NamingException. The exception stored in Util.Exception is not root cause of this exception. It is the cause of this UtilException to be thrown but needs not be the root cause of the Exception stack

hasPasswordPolicyError

public boolean hasPasswordPolicyError()
Returns true if the LDAP error code indictates a password policy error. If the cause of this UtilException is not a NamingException or if it is unable to retrieve the LDAP error code from the error string, -1 is returned.

hasLDAPErrorCode

public boolean hasLDAPErrorCode()
Returns true if the error string contains an LDAP error code. error. If the cause of this UtilException is not a NamingException or if it is unable to retrieve the LDAP error code from the error string, -1 is returned.

getLDAPErrorCode

public int getLDAPErrorCode()
Returns the LDAP error code from the exception if it is available

getPasswordPolicyErrorCode

public int getPasswordPolicyErrorCode()
Returns the password policy error code from the exception if it is available

Oracle Internet Directory API Reference
10g(9.0.4)

B10423-01

Copyright © 2003, Oracle. All Rights Reserved.