|
All LDAP Classes Internal LDAP Classes |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.ietf.ldap.LDAPException
Thrown to indicate that an LDAP error has occurred. This is a general exception which includes an error message and an LDAP error code.
Field Summary | |
static int |
ADMIN_LIMIT_EXCEEDED
Indicates that an LDAP server limit set by an administrative authority has been exceeded. |
static int |
AFFECTS_MULTIPLE_DSAS
Indicates that the modify DN operation moves the entry from one LDAP server to another and thus requires more than one LDAP server. |
static int |
ALIAS_DEREFERENCING_PROBLEM
Indicates that during a search operation, either the client does not have access rights to read the aliased object's name or dereferencing is not allowed. |
static int |
ALIAS_PROBLEM
Indicates that an error occurred when an alias was dereferenced. |
static int |
AMBIGUOUS_RESPONSE
Indicates that the server response to a request is ambiguous |
static int |
ATTRIBUTE_OR_VALUE_EXISTS
Indicates that the attribute value specified in a modify or add operation already exists as a value for that attribute. |
static int |
AUTH_METHOD_NOT_SUPPORTED
Indicates that during a bind operation the client requested an authentication method not supported by the LDAP server. |
static int |
AUTH_UNKNOWN
Indicates that a bind method was called with an unknown authentication method. |
static int |
BUSY
Indicates that the LDAP server is too busy to process the client request at this time, but if the client waits and resubmits the request, the server may be able to process it then. |
static int |
CLIENT_LOOP
Indicates the LDAP libraries detected a loop. |
static int |
COMPARE_FALSE
Does not indicate an error condition. |
static int |
COMPARE_TRUE
Does not indicate an error condition. |
static int |
CONFIDENTIALITY_REQUIRED
Indicates that the session is not protected by a protocol such as Transport Layer Security (TLS), which provides session confidentiality. |
static int |
CONNECT_ERROR
Indicates that the LDAP client has lost either its connection or cannot establish a connection to the LDAP server. |
static int |
CONSTRAINT_VIOLATION
Indicates that the attribute value specified in a modify, add, or modify DN operation violates constraints placed on the attribute. |
static int |
CONTROL_NOT_FOUND
Indicates that the client requested a control that the libraries cannot find in the list of supported controls sent by the LDAP server. |
static int |
DECODING_ERROR
Indicates that the LDAP client encountered errors when decoding an LDAP response from the LDAP server. |
static int |
ENCODING_ERROR
Indicates that the LDAP client encountered errors when encoding an LDAP request intended for the LDAP server. |
static int |
ENTRY_ALREADY_EXISTS
Indicates that the add operation attempted to add an entry that already exists, or that the modify operation attempted to rename an entry to the name of an entry that already exists. |
private LDAPException |
exception
|
static int |
FILTER_ERROR
Indicates that the search method was called with an invalid search filter. |
static int |
INAPPROPRIATE_AUTHENTICATION
Indicates that during a bind operation, the client is attempting to use an authentication method that the client cannot use correctly. |
static int |
INAPPROPRIATE_MATCHING
Indicates that the matching rule specified in the search filter does not match a rule defined for the attribute's syntax. |
static int |
INSUFFICIENT_ACCESS_RIGHTS
Indicates that the caller does not have sufficient rights to perform the requested operation. |
static int |
INVALID_ATTRIBUTE_SYNTAX
Indicates that the attribute value specified in an add, compare, or modify operation is an unrecognized or invalid syntax for the attribute. |
static int |
INVALID_CREDENTIALS
Indicates that invalid information was passed during a bind operation. |
static int |
INVALID_DN_SYNTAX
Indicates that the syntax of the DN is incorrect. |
static int |
INVALID_RESPONSE
Indicates that the server response to a request is invalid |
static int |
IS_LEAF
Indicates that the specified operation cannot be performed on a leaf entry. |
static int |
LDAP_NOT_SUPPORTED
Indicates that the requested functionality is not supported by the client. |
static int |
LDAP_TIMEOUT
Indicates that the time limit of the LDAP client was exceeded while waiting for a result. |
static int |
LOCAL_ERROR
Indicates that the LDAP client has an error. |
static int |
LOOP_DETECT
Indicates that the client discovered an alias or referral loop, and is thus unable to complete this request. |
static int |
MORE_RESULTS_TO_RETURN
Indicates that more results are chained in the result message. |
static int |
NAMING_VIOLATION
Indicates that the add or modify DN operation violates the schema's structure rules. |
static int |
NO_MEMORY
Indicates that a dynamic memory allocation method failed when calling an LDAP method. |
static int |
NO_RESULTS_RETURNED
Indicates that the LDAP server sent no results. |
static int |
NO_SUCH_ATTRIBUTE
Indicates that the attribute specified in the modify or compare operation does not exist in the entry. |
static int |
NO_SUCH_OBJECT
Indicates the target object cannot be found. |
static int |
NOT_ALLOWED_ON_NONLEAF
Indicates that the requested operation is permitted only on leaf entries. |
static int |
NOT_ALLOWED_ON_RDN
Indicates that the modify operation attempted to remove an attribute value that forms the entry's relative distinguished name. |
static int |
OBJECT_CLASS_MODS_PROHIBITED
Indicates that the modify operation attempted to modify the structure rules of an object class. |
static int |
OBJECT_CLASS_VIOLATION
Indicates that the add, modify, or modify DN operation violates the object class rules for the entry. |
static int |
OPERATIONS_ERROR
Indicates an internal error. |
static int |
OTHER
Indicates an unknown error condition. |
static int |
PROTOCOL_ERROR
Indicates that the server has received an invalid or malformed request from the client. |
static int |
REFERRAL
Does not indicate an error condition. |
static int |
REFERRAL_LIMIT_EXCEEDED
Indicates that the referral exceeds the hop limit. |
static int |
SASL_BIND_IN_PROGRESS
Does not indicate an error condition, but indicates that the server is ready for the next step in the process. |
static int |
SERVER_DOWN
Indicates that the LDAP libraries cannot establish an initial connection with the LDAP server. |
static int |
SIZE_LIMIT_EXCEEDED
Indicates that in a search operation, the size limit specified by the client or the server has been exceeded. |
static int |
STRONG_AUTH_REQUIRED
Indicates a problem with the level of authentication. |
static int |
SUCCESS
Indicates the requested client operation completed successfully. |
static int |
TIME_LIMIT_EXCEEDED
Indicates that the operation's time limit specified by either the client or the server has been exceeded. |
static int |
TLS_NOT_SUPPORTED
Indicates that TLS is not supported on the server. |
static int |
UNAVAILABLE
Indicates that the LDAP server cannot process the client's bind request, usually because it is shutting down. |
static int |
UNAVAILABLE_CRITICAL_EXTENSION
Indicates that the LDAP server was unable to satisfy a request because one or more critical extensions were not available. |
static int |
UNDEFINED_ATTRIBUTE_TYPE
Indicates that the attribute specified in the modify or add operation does not exist in the LDAP server's schema. |
static int |
UNWILLING_TO_PERFORM
Indicates that the LDAP server cannot process the request because of server-defined restrictions. |
static int |
USER_CANCELLED
Indicates that the user cancelled the LDAP operation. |
Fields inherited from class java.lang.Exception |
|
Fields inherited from class java.lang.Throwable |
|
Constructor Summary | |
|
LDAPException()
Constructs a default exception with no specific error information. |
(package private) |
LDAPException(LDAPException ex)
Constructs an LDAPException class using com.novell.ldap.LDAPException |
|
LDAPException(java.lang.String message,
int resultCode,
java.lang.String serverMessage)
Constructs an exception with a detailed message String and the result code. |
|
LDAPException(java.lang.String message,
int resultCode,
java.lang.String serverMessage,
java.lang.String matchedDN)
Constructs an exception with a detailed message String, result code, and a matchedDN returned from the server. |
|
LDAPException(java.lang.String message,
int resultCode,
java.lang.String serverMessage,
java.lang.Throwable rootException)
Constructs an exception with a detailed message String, the result code, and the root exception. |
Method Summary | |
java.lang.Throwable |
fillInStackTrace()
|
java.lang.Throwable |
getCause()
Returns the lower level Exception which caused the failure, if any. |
java.lang.String |
getLDAPErrorMessage()
Returns the error message from the LDAP server, if this message is available (that is, if this message was set). |
java.lang.String |
getLocalizedMessage()
|
java.lang.String |
getMatchedDN()
Returns the part of a submitted distinguished name which could be matched by the server. |
java.lang.String |
getMessage()
|
int |
getResultCode()
Returns the result code from the exception. |
(package private) LDAPException |
getWrappedObject()
gets the com.novell.ldap.LDAPException object |
void |
printStackTrace()
|
void |
printStackTrace(java.io.PrintStream stream)
|
void |
printStackTrace(java.io.PrintWriter writer)
|
java.lang.String |
resultCodeToString()
Returns a string representing the result code in the default locale. |
static java.lang.String |
resultCodeToString(int code)
Returns a string representing the specified result code in the default locale. |
static java.lang.String |
resultCodeToString(int code,
java.util.Locale locale)
Returns a string representing the specified result code in the specified locale. |
java.lang.String |
resultCodeToString(java.util.Locale locale)
Returns a string representing the result code in the specified locale. |
java.lang.String |
toString()
Converts the integer error value to a string, in the default locale. |
Methods inherited from class java.lang.Throwable |
getStackTrace, initCause, setStackTrace |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private LDAPException exception
public static final int SUCCESS
public static final int OPERATIONS_ERROR
public static final int PROTOCOL_ERROR
public static final int TIME_LIMIT_EXCEEDED
public static final int SIZE_LIMIT_EXCEEDED
public static final int COMPARE_FALSE
public static final int COMPARE_TRUE
public static final int AUTH_METHOD_NOT_SUPPORTED
public static final int STRONG_AUTH_REQUIRED
public static final int REFERRAL
public static final int ADMIN_LIMIT_EXCEEDED
public static final int UNAVAILABLE_CRITICAL_EXTENSION
public static final int CONFIDENTIALITY_REQUIRED
public static final int SASL_BIND_IN_PROGRESS
public static final int NO_SUCH_ATTRIBUTE
public static final int UNDEFINED_ATTRIBUTE_TYPE
public static final int INAPPROPRIATE_MATCHING
public static final int CONSTRAINT_VIOLATION
public static final int ATTRIBUTE_OR_VALUE_EXISTS
public static final int INVALID_ATTRIBUTE_SYNTAX
public static final int NO_SUCH_OBJECT
public static final int ALIAS_PROBLEM
public static final int INVALID_DN_SYNTAX
public static final int IS_LEAF
public static final int ALIAS_DEREFERENCING_PROBLEM
public static final int INAPPROPRIATE_AUTHENTICATION
public static final int INVALID_CREDENTIALS
public static final int INSUFFICIENT_ACCESS_RIGHTS
public static final int BUSY
public static final int UNAVAILABLE
public static final int UNWILLING_TO_PERFORM
public static final int LOOP_DETECT
public static final int NAMING_VIOLATION
public static final int OBJECT_CLASS_VIOLATION
public static final int NOT_ALLOWED_ON_NONLEAF
public static final int NOT_ALLOWED_ON_RDN
public static final int ENTRY_ALREADY_EXISTS
public static final int OBJECT_CLASS_MODS_PROHIBITED
public static final int AFFECTS_MULTIPLE_DSAS
public static final int OTHER
public static final int SERVER_DOWN
public static final int LOCAL_ERROR
public static final int ENCODING_ERROR
public static final int DECODING_ERROR
public static final int LDAP_TIMEOUT
public static final int AUTH_UNKNOWN
public static final int FILTER_ERROR
public static final int USER_CANCELLED
public static final int NO_MEMORY
public static final int CONNECT_ERROR
public static final int LDAP_NOT_SUPPORTED
public static final int CONTROL_NOT_FOUND
public static final int NO_RESULTS_RETURNED
public static final int MORE_RESULTS_TO_RETURN
public static final int CLIENT_LOOP
public static final int REFERRAL_LIMIT_EXCEEDED
public static final int INVALID_RESPONSE
public static final int AMBIGUOUS_RESPONSE
public static final int TLS_NOT_SUPPORTED
Constructor Detail |
public LDAPException()
LDAPException(LDAPException ex)
public LDAPException(java.lang.String message, int resultCode, java.lang.String serverMessage)
public LDAPException(java.lang.String message, int resultCode, java.lang.String serverMessage, java.lang.Throwable rootException)
public LDAPException(java.lang.String message, int resultCode, java.lang.String serverMessage, java.lang.String matchedDN)
Method Detail |
LDAPException getWrappedObject()
public java.lang.Throwable getCause()
public java.lang.String getLDAPErrorMessage()
public int getResultCode()
public java.lang.String getMatchedDN()
public java.lang.String resultCodeToString()
public static java.lang.String resultCodeToString(int code)
public java.lang.String resultCodeToString(java.util.Locale locale)
public static java.lang.String resultCodeToString(int code, java.util.Locale locale)
public java.lang.String toString()
public void printStackTrace()
public void printStackTrace(java.io.PrintStream stream)
public void printStackTrace(java.io.PrintWriter writer)
public java.lang.Throwable fillInStackTrace()
public java.lang.String getLocalizedMessage()
public java.lang.String getMessage()
|
All LDAP Classes Internal LDAP Classes |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |