hasLDAPErrorCode

ne

UtilException

UtilException

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.