Oracle Internet Directory API Reference
10g(10.1.2)

B14083-02


oracle.ldap.util
Class UtilException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byoracle.ldap.util.UtilException

All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AccessDeniedException, AuthFailureException, CommunicationErrorException, GeneralErrorException, IdmException, InvalidRootOrclctxException, InvalidSubscriberOrclctxException, MultipleSubscriberException, MultipleUserException, NoGroupMembersException, NoSuchGroupException, NoSuchSubscriberException, NoSuchUserException, ParameterException, PasswordPolicyException, ProvisioningException, 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

Constructor Summary
UtilException(java.lang.Exception e)

Method Summary
int getLDAPErrorCode()
Returns the LDAP error code from the exception if it is available
static int getLDAPErrorCode(javax.naming.NamingException ne)
A static method to allow the parsing of the error string in the NamingException to extract the LDAP error code.
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

Constructor Detail

UtilException

public UtilException(java.lang.Exception e)

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

getLDAPErrorCode

public static int getLDAPErrorCode(javax.naming.NamingException ne)
A static method to allow the parsing of the error string in the NamingException to extract the LDAP error code.
Parameters:
ne - a NamingException

Oracle Internet Directory API Reference
10g(10.1.2)

B14083-02


Copyright © 2005, Oracle. All Rights Reserved.