public class UtilException
extends java.lang.Exception
Constructor and Description |
---|
UtilException(java.lang.Exception e) |
Modifier and Type | Method and Description |
---|---|
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() |
public javax.naming.NamingException returnNamingException()
public boolean isNamingException()
public boolean hasPasswordPolicyError()
UtilException
is not a
NamingException or if it is unable to retrieve the LDAP error code
from the error string, -1 is returned.public boolean hasLDAPErrorCode()
UtilException
is not a
NamingException or if it is unable to retrieve the LDAP error code
from the error string, -1 is returned.public int getLDAPErrorCode()
public int getPasswordPolicyErrorCode()
public static int getLDAPErrorCode(javax.naming.NamingException ne)
ne
- a NamingException