Skip navigation links

Oracle Internet Directory API Reference
11g Release 1 (11.1.1)

E10664-01


oracle.ldap.util
Class UtilException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by oracle.ldap.util.UtilException

All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AccessDeniedException, AcctTotallyLockedException, AuthFailureException, AuthPasswdChangeWarningException, AuthPasswdExpiredException, CommunicationErrorException, GeneralErrorException, IdmException, InvalidRootOrclctxException, InvalidSubscriberOrclctxException, LoginPolicyFailureException, MultipleSubscriberException, MultipleUserException, NoGroupMembersException, NoRootOrclctxException, NoSubscriberOrclctxException, NoSuchGroupException, NoSuchSubscriberException, NoSuchUserException, ParameterException, PasswdExpiredException, 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

Field Summary
protected  java.lang.Exception e
           
protected  boolean hasLDAPErrorCode
           
protected  boolean hasPasswordPolicyError
           
protected  boolean isNamingException
           
protected  int ldapErrorCode
           
protected  javax.naming.NamingException ne
           
protected  int passwordPolicyErrorCode
           

 

Constructor Summary
protected UtilException()
           
  UtilException(java.lang.Exception e)
           
protected UtilException(java.lang.String s)
          Constructor for UtilException allowing an error message to be specified
protected UtilException(java.lang.String s, java.lang.Exception ine)
           

 

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

 

Field Detail

ldapErrorCode

protected int ldapErrorCode

passwordPolicyErrorCode

protected int passwordPolicyErrorCode

e

protected java.lang.Exception e

isNamingException

protected boolean isNamingException

hasPasswordPolicyError

protected boolean hasPasswordPolicyError

hasLDAPErrorCode

protected boolean hasLDAPErrorCode

ne

protected javax.naming.NamingException ne

Constructor Detail

UtilException

protected UtilException()

UtilException

protected UtilException(java.lang.String s)
Constructor for UtilException allowing an error message to be specified
Parameters:
s - the error string to be stored

UtilException

public UtilException(java.lang.Exception e)

UtilException

protected UtilException(java.lang.String s,
                        java.lang.Exception ine)

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

Skip navigation links

Oracle Internet Directory API Reference
11g Release 1 (11.1.1)

E10664-01


Copyright © 1999, 2009 Oracle. All Rights Reserved.