public class UtilException
extends java.lang.Exception
Modifier and Type | Field and Description |
---|---|
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 |
Modifier | Constructor and Description |
---|---|
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) |
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() |
protected int ldapErrorCode
protected int passwordPolicyErrorCode
protected java.lang.Exception e
protected boolean isNamingException
protected boolean hasPasswordPolicyError
protected boolean hasLDAPErrorCode
protected javax.naming.NamingException ne
protected UtilException()
protected UtilException(java.lang.String s)
s
- the error string to be storedpublic UtilException(java.lang.Exception e)
protected UtilException(java.lang.String s, java.lang.Exception ine)
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