getResultCode
method returns a result code, which can be compared against standard Ldap result codes. getMessage
method returns a localized message from the message resource that corresponds to the result code. getLdapErrorMessage
method returns any error message received from the Ldap server.getMatchedDN
method retrieves the part of a submitted distinguished name which could be matched by the servergetCause
method returns the a nested exception that was the original cause for the error. toString
method returns a string containing all the above sources of information, if they have a value. Exceptions generated by the API, i.e. that are not a result of a server response, can be identified as instanceof {@link LdapLocalException} The following table lists the standard Ldap result codes. See RFC2251 for a discussion of the meanings of the result codes. The corresponding ASN.1 definition from RFC2251 is provided in parentheses. Value | Result Code |
0 | {@link #SUCCESS} (success) |
1 | {@link #OPERATIONS_ERROR} (operationsError) |
2 | {@link #PROTOCOL_ERROR} (protocolError) |
3 | {@link #TIME_LIMIT_EXCEEDED} (timeLimitExceeded) |
4 | {@link #SIZE_LIMIT_EXCEEDED} (sizeLimitExceeded) |
5 | {@link #COMPARE_FALSE} (compareFalse) |
6 | {@link #COMPARE_TRUE} (compareTrue) |
7 | {@link #AUTH_METHOD_NOT_SUPPORTED} (authMethodNotSupported) |
8 | {@link #STRONG_AUTH_REQUIRED} (strongAuthRequired) |
10 | {@link #REFERRAL} (referral) |
11 | {@link #ADMIN_LIMIT_EXCEEDED} (adminLimitExceeded) |
12 | {@link #UNAVAILABLE_CRITICAL_EXTENSION} (unavailableCriticalExtension) |
13 | {@link #CONFIDENTIALITY_REQUIRED} (confidentialityRequired) |
14 | {@link #SASL_BIND_IN_PROGRESS} (saslBindInProgress) |
16 | {@link #NO_SUCH_ATTRIBUTE} (noSuchAttribute) |
17 | {@link #UNDEFINED_ATTRIBUTE_TYPE} (undefinedAttributeType) |
18 | {@link #INAPPROPRIATE_MATCHING} (inappropriateMatching) |
19 | {@link #CONSTRAINT_VIOLATION} (constraintViolation) |
20 | {@link #ATTRIBUTE_OR_VALUE_EXISTS} (AttributeOrValueExists) |
21 | {@link #INVALID_ATTRIBUTE_SYNTAX} (invalidAttributeSyntax) |
32 | {@link #NO_SUCH_OBJECT} (noSuchObject) |
33 | {@link #ALIAS_PROBLEM} (aliasProblem) |
34 | {@link #INVALID_DN_SYNTAX} (invalidDNSyntax) |
35 | {@link #IS_LEAF} (isLeaf) |
36 | {@link #ALIAS_DEREFERENCING_PROBLEM} (aliasDereferencingProblem) |
48 | {@link #INAPPROPRIATE_AUTHENTICATION} (inappropriateAuthentication) |
49 | {@link #INVALID_CREDENTIALS} (invalidCredentials) |
50 | {@link #INSUFFICIENT_ACCESS_RIGHTS} (insufficientAccessRights) |
51 | {@link #BUSY} (busy) |
52 | {@link #UNAVAILABLE} (unavailable) |
53 | {@link #UNWILLING_TO_PERFORM} (unwillingToPerform) |
54 | {@link #LOOP_DETECT} (loopDetect) |
64 | {@link #NAMING_VIOLATION} (namingViolation) |
65 | {@link #OBJECT_CLASS_VIOLATION} (objectClassViolation) |
66 | {@link #NOT_ALLOWED_ON_NONLEAF} (notAllowedOnNonLeaf) |
67 | {@link #NOT_ALLOWED_ON_RDN} (notAllowedOnRDN) |
68 | {@link #ENTRY_ALREADY_EXISTS} (entryAlreadyExists) |
69 | {@link #OBJECT_CLASS_MODS_PROHIBITED} (objectClassModsProhibited) |
71 | {@link #AFFECTS_MULTIPLE_DSAS} (affectsMultipleDSAs |
80 | {@link #OTHER} (other) |
Value | Result Code |
81 | {@link #SERVER_DOWN} |
82 | {@link #LOCAL_ERROR} |
83 | {@link #ENCODING_ERROR} |
84 | {@link #DECODING_ERROR} |
85 | {@link #Ldap_TIMEOUT} |
86 | {@link #AUTH_UNKNOWN} |
87 | {@link #FILTER_ERROR} |
88 | {@link #USER_CANCELLED} |
90 | {@link #NO_MEMORY} |
91 | {@link #CONNECT_ERROR} |
92 | {@link #Ldap_NOT_SUPPORTED} |
93 | {@link #CONTROL_NOT_FOUND} |
94 | {@link #NO_RESULTS_RETURNED} |
95 | {@link #MORE_RESULTS_TO_RETURN} |
96 | {@link #CLIENT_LOOP} |
97 | {@link #REFERRAL_LIMIT_EXCEEDED} |
100 | {@link #INVALID_RESPONSE} |
101 | {@link #AMBIGUOUS_RESPONSE} |
112 | {@link #TLS_NOT_SUPPORTED} |