|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.shared.ldap.util.Enum
org.apache.directory.shared.ldap.util.ValuedEnum
org.apache.directory.shared.ldap.message.ResultCodeEnum
Type safe LDAP message envelope result code enumeration. The resultCode is a parameter of the LDAPResult which is the construct used in this protocol to return success or failure indications from servers to clients. In response to various requests servers will return responses containing fields of type LDAPResult to indicate the final status of a protocol operation request. This enumeration represents the various status codes associated with an LDAPResult, hence it is called the ResultCodeEnum. Here are the definitions and values for error codes from section 4.1.10 of RFC 2251:
resultCode
ENUMERATED {
success (0),
operationsError (1),
protocolError (2),
timeLimitExceeded (3),
sizeLimitExceeded (4),
compareFalse (5),
compareTrue (6),
authMethodNotSupported (7),
strongAuthRequired (8),
partialResults (9), -- new
referral (10), -- new
adminLimitExceeded (11), -- new
unavailableCriticalExtension (12), -- new
confidentialityRequired (13), -- new
saslBindInProgress (14), -- new
noSuchAttribute (16),
undefinedAttributeType (17),
inappropriateMatching (18),
constraintViolation (19),
attributeOrValueExists (20),
invalidAttributeSyntax (21),
-- 22-31 unused --
noSuchObject (32),
aliasProblem (33),
invalidDNSyntax (34),
-- 35 reserved for undefined isLeaf --
aliasDereferencingProblem (36),
-- 37-47 unused --
inappropriateAuthentication (48),
invalidCredentials (49),
insufficientAccessRights (50),
busy (51),
unavailable (52),
unwillingToPerform (53),
loopDetect (54),
-- 55-63 unused --
namingViolation (64),
objectClassViolation (65),
notAllowedOnNonLeaf (66),
notAllowedOnRDN (67),
entryAlreadyExists (68),
objectClassModsProhibited (69),
-- 70 reserved for CLDAP --
affectsMultipleDSAs (71), -- new
-- 72-79 unused --
other (80) },
-- 81-90 reserved for APIs --
All the result codes with the exception of success, compareFalse and
compareTrue are to be treated as meaning the operation could not be completed
in its entirety. Most of the result codes are based on problem indications
from X.511 error data types. Result codes from 16 to 21 indicate an
AttributeProblem, codes 32, 33, 34 and 36 indicate a NameProblem, codes 48,
49 and 50 indicate a SecurityProblem, codes 51 to 54 indicate a
ServiceProblem, and codes 64 to 69 and 71 indicates an UpdateProblem. If a
client receives a result code which is not listed above, it is to be treated
as an unknown error condition. The majority of this javadoc was pasted in
from RFC 2251. There's and expired draft out there on error codes which makes
alot of sense: ietf (expired) draft on error codes (read at your discretion).
Result codes have been identified and split into categories:
Field Summary | |
static java.util.Set |
ADD_CODES
A set of result code enumerations that may result from add operations. |
static ResultCodeEnum |
ADMINLIMITEXCEEDED
The server has reached some limit set by an administrative authority, and no partial results are available to return to the user [X511, Section 12.8]. |
static int |
ADMINLIMITEXCEEDED_VAL
|
static ResultCodeEnum |
AFFECTSMULTIPLEDSAS
This error code should be returned to indicate that the operation could not be performed since it affects more than one DSA. |
static int |
AFFECTSMULTIPLEDSAS_VAL
|
static ResultCodeEnum |
ALIASDEREFERENCINGPROBLEM
An alias was encountered in a situation where it was not allowed or where access was denied [X511, Section 12.5]. |
static int |
ALIASDEREFERENCINGPROBLEM_VAL
|
static ResultCodeEnum |
ALIASPROBLEM
An alias has been dereferenced which names no object [X511, Section 12.5] Applicable operations: Search. |
static int |
ALIASPROBLEM_VAL
|
static java.util.Set |
ALL_CODES
Set of all result code enumerations. |
static java.util.Set |
ATTRIBUTE_CODES
Contains the set of error codes associated with attribute problems. |
static ResultCodeEnum |
ATTRIBUTEORVALUEEXISTS
This error should be returned by the server if the value specified by the client already exists within the attribute. |
static int |
ATTRIBUTEORVALUEEXISTS_VAL
|
static java.util.Set |
AUTHENTICATIONNOTSUPPOERTEDEXCEPTION_CODES
A set of ResultCodes containing those that may correspond to a Exception . |
static ResultCodeEnum |
AUTHMETHODNOTSUPPORTED
This error code should be returned if the client requests, in a Bind request, an authentication method which is not supported or recognized by the server. |
static int |
AUTHMETHODNOTSUPPORTED_VAL
|
static java.util.Set |
BIND_CODES
A set of result code enumerations that may result from bind operations. |
static ResultCodeEnum |
BUSY
This error code may be returned if the server is unable to process the client's request at this time. |
static int |
BUSY_VAL
|
static java.util.Set |
COMMON_CODES
A set of result code enumerations common to all operations. |
static java.util.Set |
COMPARE_CODES
A set of result code enumerations that may result from compare operations. |
static ResultCodeEnum |
COMPAREFALSE
It is used to indicate that the result of a Compare operation is FALSE and does not indicate an error. |
static int |
COMPAREFALSE_VAL
|
static ResultCodeEnum |
COMPARETRUE
It is used to indicate that the result of a Compare operation is TRUE and does not indicate an error. |
static int |
COMPARETRUE_VAL
|
static ResultCodeEnum |
CONFIDENTIALITYREQUIRED
This error code may be returned if the session is not protected by a protocol which provides session confidentiality. |
static int |
CONFIDENTIALITYREQUIRED_VAL
|
static ResultCodeEnum |
CONSTRAINTVIOLATION
This error should be returned by the server if an attribute value specified by the client violates the constraints placed on the attribute as it was defined in the DSA - this may be a size constraint or a constraint on the content. |
static int |
CONSTRAINTVIOLATION_VAL
|
static java.util.Set |
DELETE_CODES
A set of result code enumerations that may result from delete operations. |
static ResultCodeEnum |
ENTRYALREADYEXISTS
This error should be returned by the server when the client attempts to add an entry which already exists, or if the client attempts to rename an entry with the name of an entry which exists. |
static int |
ENTRYALREADYEXISTS_VAL
|
static java.util.Set |
EXTENDED_CODES
A set of result code enumerations that could result from extended operations. |
static java.util.Set |
GENERAL_CODES
This array holds the set of general error codes. |
static ResultCodeEnum |
INAPPROPRIATEAUTHENTICATION
This error should be returned by the server when the client has tried to use a method of authentication that is inappropriate, that is a method of authentication which the client is unable to use correctly. |
static int |
INAPPROPRIATEAUTHENTICATION_VAL
|
static ResultCodeEnum |
INAPPROPRIATEMATCHING
An attempt was made, e.g., in a filter, to use a matching rule not defined for the attribute type concerned [X511, Section 12.4]. |
static int |
INAPPROPRIATEMATCHING_VAL
|
static ResultCodeEnum |
INSUFFICIENTACCESSRIGHTS
The requestor does not have the right to carry out the requested operation [X511, Section 12.7]. |
static int |
INSUFFICIENTACCESSRIGHTS_VAL
|
static ResultCodeEnum |
INVALIDATTRIBUTESYNTAX
This error should be returned by the server if the attribute syntax for the attribute value, specified as an argument of the operation, is unrecognized or invalid. |
static int |
INVALIDATTRIBUTESYNTAX_VAL
|
static java.util.Set |
INVALIDATTRIBUTEVALUEEXCEPTION_CODES
A set of ResultCodes containing those that may correspond to a Exception . |
static ResultCodeEnum |
INVALIDCREDENTIALS
This error code is returned if the DN or password used in a simple bind operation is incorrect, or if the DN or password is incorrect for some other reason, e.g. |
static int |
INVALIDCREDENTIALS_VAL
|
static ResultCodeEnum |
INVALIDDNSYNTAX
This error should be returned by the server if the DN syntax is incorrect. |
static int |
INVALIDDNSYNTAX_VAL
|
static java.util.Set |
INVALIDNAMEEXCEPTION_CODES
A set of ResultCodes containing those that may correspond to a Exception . |
static java.util.Set |
LIMITEXCEEDEDEXCEPTION_CODES
A set of ResultCodes containing those that may correspond to a Exception . |
static ResultCodeEnum |
LOOPDETECT
This error may be returned by the server if it detects an alias or referral loop, and is unable to satisfy the client's request. |
static int |
LOOPDETECT_VAL
|
static java.util.Set |
MODIFY_CODES
A set of result code enumerations that may result from modify operations. |
static java.util.Set |
MODIFYDN_CODES
A set of result code enumerations resulting from modifyDn operations. |
static java.util.Set |
NAME_CODES
Stores the set of error codes associated with name problems. |
static java.util.Set |
NAMINGEXCEPTION_CODES
A set of ResultCodes containing those that may correspond to a NamingException . |
static ResultCodeEnum |
NAMINGVIOLATION
The attempted addition or modification would violate the structure rules of the DIT as defined in the directory schema and X.501. |
static int |
NAMINGVIOLATION_VAL
|
static java.util.Set |
NON_ERRONEOUS_CODES
Five result codes that may be returned in LDAPResult are not used to indicate an error. |
static ResultCodeEnum |
NOSUCHATTRIBUTE
This error may be returned if the attribute specified as an argument of the operation does not exist in the entry. |
static int |
NOSUCHATTRIBUTE_VAL
|
static ResultCodeEnum |
NOSUCHOBJECT
This error should only be returned if the target object cannot be found. |
static int |
NOSUCHOBJECT_VAL
|
static ResultCodeEnum |
NOTALLOWEDONNONLEAF
This error should be returned if the client attempts to perform an operation which is permitted only on leaf entries - e.g., if the client attempts to delete a non-leaf entry. |
static int |
NOTALLOWEDONNONLEAF_VAL
|
static ResultCodeEnum |
NOTALLOWEDONRDN
The attempted operation would affect the RDN (e.g., removal of an attribute which is a part of the RDN) [X511, Section 12.9]. |
static int |
NOTALLOWEDONRDN_VAL
|
static ResultCodeEnum |
OBJECTCLASSMODSPROHIBITED
An operation attempted to modify an object class that should not be modified, e.g., the structural object class of an entry. |
static int |
OBJECTCLASSMODSPROHIBITED_VAL
|
static ResultCodeEnum |
OBJECTCLASSVIOLATION
This error should be returned if the operation requested by the user would violate the objectClass requirements for the entry if carried out. |
static int |
OBJECTCLASSVIOLATION_VAL
|
static java.util.Set |
OPERATIONNOTSUPPOERTEXCEPTION_CODES
A set of ResultCodes containing those that may correspond to a Exception . |
static ResultCodeEnum |
OPERATIONSERROR
If the server requires that the client bind before browsing or modifying the directory, the server MAY reject a request other than binding, unbinding or an extended request with the "operationsError" result. |
static int |
OPERATIONSERROR_VAL
|
static ResultCodeEnum |
OTHER
This error code should be returned only if no other error code is suitable. |
static int |
OTHER_VAL
|
static ResultCodeEnum |
PARTIALRESULTS
Servers sends this result code to LDAP v2 clients to refer them to another LDAP server. |
static int |
PARTIALRESULTS_VAL
|
static java.util.Set |
PARTIALRESULTSEXCEPTION_CODES
A set of ResultCodes containing those that may correspond to a Exception . |
static ResultCodeEnum |
PROTOCOLERROR
A protocol error should be returned by the server when an invalid or malformed request is received from the client. |
static int |
PROTOCOLERROR_VAL
|
static ResultCodeEnum |
REFERRAL
Rather than indicating an error, this result code is used to indicate that the server does not hold the target entry of the request but is able to provide alternative servers that may. |
static int |
REFERRAL_VAL
|
static ResultCodeEnum |
SASLBINDINPROGRESS
This result code is not an error response from the server, but rather, is a request for bind continuation. |
static int |
SASLBINDINPROGRESS_VAL
|
static java.util.Set |
SCHEMAVIOLATIONEXCEPTION_CODES
A set of ResultCodes containing those that may correspond to a SchemaViolationException . |
static java.util.Set |
SEARCH_CODES
A set of result code enumerations that may result from search operations. |
static java.util.Set |
SECURITY_CODES
Stores all the result codes associated with security related problems. |
static java.util.Set |
SERVICE_CODES
A service error reports a problem related to the provision of the service [X511, Section 12.8]. |
static java.util.Set |
SERVICEUNAVAILABLE_CODES
A set of ResultCodes containing those that may correspond to a Exception . |
static ResultCodeEnum |
SIZELIMITEXCEEDED
This error should be returned when the number of results generated by a search exceeds the maximum number of results specified by either the client or the server. |
static int |
SIZELIMITEXCEEDED_VAL
|
static ResultCodeEnum |
STRONGAUTHREQUIRED
This error may be returned on a bind request if the server only accepts strong authentication or it may be returned when a client attempts an operation which requires the client to be strongly authenticated - for example Delete. |
static int |
STRONGAUTHREQUIRED_VAL
|
static ResultCodeEnum |
SUCCESS
It is returned when the client operation completed successfully without errors. |
static int |
SUCCESS_VAL
|
static ResultCodeEnum |
TIMELIMITEXCEEDED
This error should be returned when the time to perform an operation has exceeded either the time limit specified by the client (which may only be set by the client in a search operation) or the limit specified by the server. |
static int |
TIMELIMITEXCEEDED_VAL
|
static ResultCodeEnum |
UNAVAILABLE
This error code is returned when the server is unavailable to process the client's request. |
static int |
UNAVAILABLE_VAL
|
static ResultCodeEnum |
UNAVAILABLECRITICALEXTENSION
The server was unable to satisfy the request because one or more critical extensions were not available [X511, Section 12.8]. |
static int |
UNAVAILABLECRITICALEXTENSION_VAL
|
static ResultCodeEnum |
UNDEFINEDATTRIBUTETYPE
This error may be returned if the specified attribute is unrecognized by the server, since it is not present in the server's defined schema. |
static int |
UNDEFINEDATTRIBUTETYPE_VAL
|
static ResultCodeEnum |
UNWILLINGTOPERFORM
This error code should be returned by the server when a client request is properly formed but which the server is unable to complete due to server-defined restrictions. |
static int |
UNWILLINGTOPERFORM_VAL
|
static java.util.Set |
UPDATE_CODES
An update error reports problems related to attempts to add, delete, or modify information in the DIB [X511, Section 12.9]. |
Fields inherited from class org.apache.directory.shared.ldap.util.Enum |
iToString |
Method Summary | |
static java.util.Set |
getAddCodes()
Gets an array of result code enumerations resulting from add operations. |
static java.util.Set |
getAllCodes()
Gets all of the result code enumerations defined. |
static java.util.Set |
getAttributeCodes()
Gets an array of result code enumerations that report a problem related to an attribute specified by the client in their request message.. |
static ResultCodeEnum |
getBestEstimate(java.lang.Throwable t,
MessageTypeEnum type)
Takes a guess at the result code to use if it cannot figure it out from known Throwable to result code mappings. |
static java.util.Set |
getBindCodes()
Gets an array of result code enumerations resulting from bind operations. |
static java.util.Set |
getCommonCodes()
Gets an array of result code enumerations common to all operations. |
static java.util.Set |
getCompareCodes()
Gets an array of result code enumerations resulting from compare operations. |
static java.util.Set |
getDeleteCodes()
Gets an array of result code enumerations resulting from delete operations. |
static java.util.Set |
getExtendedCodes()
Gets an array of result code enumerations resulting from extended operations. |
static java.util.Set |
getGeneralCodes()
Gets the set of general error codes. |
static java.util.Set |
getModifyCodes()
Gets an array of result code enumerations resulting from modify operations. |
static java.util.Set |
getModifyDnCodes()
Gets an array of result code enumerations resulting from modifyDn operations. |
static java.util.Set |
getNameCodes()
Gets an array of result code enumerations that report a problem related to a distinguished name provided as an argument to a request message. |
static java.util.Set |
getNonErroneousCodes()
Gets the set of result code enumerations that do not represent operational failures. |
static ResultCodeEnum |
getResultCode(java.lang.Throwable t)
Gets an LDAP result code from a Throwable if it can resolve it unambiguously or returns null if it cannot resolve the exception to a single ResultCode. |
static ResultCodeEnum |
getResultCodeEnum(int value)
Gets the result code enumeration object associated with a result code value. |
static java.util.Set |
getResultCodes(java.lang.Throwable t)
Gets the set of result codes a Throwable may map to. |
static java.util.Set |
getSearchCodes()
Gets an array of result code enumerations resulting from search operations. |
static java.util.Set |
getSecurityCodes()
Gets an array of result code enumerations that report a problem related to a problem in carrying out an operation for security reasons. |
static java.util.Set |
getServiceCodes()
Gets an array of result code enumerations that report a problem related to the provision of the service. |
static java.util.Set |
getUpdateCodes()
Gets an array of result code enumerations that reports problems related to attempts to add, delete, or modify information in the DIB. |
Methods inherited from class org.apache.directory.shared.ldap.util.ValuedEnum |
compareTo, getEnum, getValue, toString |
Methods inherited from class org.apache.directory.shared.ldap.util.Enum |
equals, getEnum, getEnumClass, getEnumList, getEnumMap, getName, hashCode, iterator, readResolve |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int SUCCESS_VAL
public static final int OPERATIONSERROR_VAL
public static final int PROTOCOLERROR_VAL
public static final int TIMELIMITEXCEEDED_VAL
public static final int SIZELIMITEXCEEDED_VAL
public static final int COMPAREFALSE_VAL
public static final int COMPARETRUE_VAL
public static final int AUTHMETHODNOTSUPPORTED_VAL
public static final int STRONGAUTHREQUIRED_VAL
public static final int PARTIALRESULTS_VAL
public static final int REFERRAL_VAL
public static final int ADMINLIMITEXCEEDED_VAL
public static final int UNAVAILABLECRITICALEXTENSION_VAL
public static final int CONFIDENTIALITYREQUIRED_VAL
public static final int SASLBINDINPROGRESS_VAL
public static final int NOSUCHATTRIBUTE_VAL
public static final int UNDEFINEDATTRIBUTETYPE_VAL
public static final int INAPPROPRIATEMATCHING_VAL
public static final int CONSTRAINTVIOLATION_VAL
public static final int ATTRIBUTEORVALUEEXISTS_VAL
public static final int INVALIDATTRIBUTESYNTAX_VAL
public static final int NOSUCHOBJECT_VAL
public static final int ALIASPROBLEM_VAL
public static final int INVALIDDNSYNTAX_VAL
public static final int ALIASDEREFERENCINGPROBLEM_VAL
public static final int INAPPROPRIATEAUTHENTICATION_VAL
public static final int INVALIDCREDENTIALS_VAL
public static final int INSUFFICIENTACCESSRIGHTS_VAL
public static final int BUSY_VAL
public static final int UNAVAILABLE_VAL
public static final int UNWILLINGTOPERFORM_VAL
public static final int LOOPDETECT_VAL
public static final int NAMINGVIOLATION_VAL
public static final int NOTALLOWEDONNONLEAF_VAL
public static final int OBJECTCLASSVIOLATION_VAL
public static final int NOTALLOWEDONRDN_VAL
public static final int ENTRYALREADYEXISTS_VAL
public static final int OBJECTCLASSMODSPROHIBITED_VAL
public static final int AFFECTSMULTIPLEDSAS_VAL
public static final int OTHER_VAL
public static final ResultCodeEnum PARTIALRESULTS
public static final ResultCodeEnum SUCCESS
public static final ResultCodeEnum COMPAREFALSE
public static final ResultCodeEnum COMPARETRUE
public static final ResultCodeEnum REFERRAL
public static final ResultCodeEnum SASLBINDINPROGRESS
public static final ResultCodeEnum AUTHMETHODNOTSUPPORTED
public static final ResultCodeEnum STRONGAUTHREQUIRED
public static final ResultCodeEnum CONFIDENTIALITYREQUIRED
public static final ResultCodeEnum ALIASDEREFERENCINGPROBLEM
public static final ResultCodeEnum INAPPROPRIATEAUTHENTICATION
public static final ResultCodeEnum INVALIDCREDENTIALS
public static final ResultCodeEnum INSUFFICIENTACCESSRIGHTS
public static final ResultCodeEnum OPERATIONSERROR
public static final ResultCodeEnum PROTOCOLERROR
public static final ResultCodeEnum TIMELIMITEXCEEDED
public static final ResultCodeEnum SIZELIMITEXCEEDED
public static final ResultCodeEnum ADMINLIMITEXCEEDED
public static final ResultCodeEnum UNAVAILABLECRITICALEXTENSION
public static final ResultCodeEnum BUSY
public static final ResultCodeEnum UNAVAILABLE
public static final ResultCodeEnum UNWILLINGTOPERFORM
public static final ResultCodeEnum LOOPDETECT
public static final ResultCodeEnum NOSUCHATTRIBUTE
public static final ResultCodeEnum UNDEFINEDATTRIBUTETYPE
public static final ResultCodeEnum INAPPROPRIATEMATCHING
public static final ResultCodeEnum CONSTRAINTVIOLATION
public static final ResultCodeEnum ATTRIBUTEORVALUEEXISTS
public static final ResultCodeEnum INVALIDATTRIBUTESYNTAX
public static final ResultCodeEnum NOSUCHOBJECT
public static final ResultCodeEnum ALIASPROBLEM
public static final ResultCodeEnum INVALIDDNSYNTAX
public static final ResultCodeEnum NAMINGVIOLATION
public static final ResultCodeEnum OBJECTCLASSVIOLATION
public static final ResultCodeEnum NOTALLOWEDONNONLEAF
public static final ResultCodeEnum NOTALLOWEDONRDN
public static final ResultCodeEnum ENTRYALREADYEXISTS
public static final ResultCodeEnum OBJECTCLASSMODSPROHIBITED
public static final ResultCodeEnum AFFECTSMULTIPLEDSAS
public static final ResultCodeEnum OTHER
public static final java.util.Set GENERAL_CODES
public static final java.util.Set NON_ERRONEOUS_CODES
public static final java.util.Set ATTRIBUTE_CODES
public static final java.util.Set NAME_CODES
public static final java.util.Set SECURITY_CODES
public static final java.util.Set SERVICE_CODES
public static final java.util.Set UPDATE_CODES
public static final java.util.Set COMMON_CODES
public static final java.util.Set BIND_CODES
public static final java.util.Set SEARCH_CODES
public static final java.util.Set MODIFY_CODES
public static final java.util.Set ADD_CODES
public static final java.util.Set DELETE_CODES
public static final java.util.Set MODIFYDN_CODES
public static final java.util.Set COMPARE_CODES
public static final java.util.Set EXTENDED_CODES
public static final java.util.Set ALL_CODES
public static final java.util.Set NAMINGEXCEPTION_CODES
NamingException
.
public static final java.util.Set AUTHENTICATIONNOTSUPPOERTEDEXCEPTION_CODES
Exception
.
public static final java.util.Set SERVICEUNAVAILABLE_CODES
Exception
.
public static final java.util.Set INVALIDATTRIBUTEVALUEEXCEPTION_CODES
Exception
.
public static final java.util.Set PARTIALRESULTSEXCEPTION_CODES
Exception
.
public static final java.util.Set LIMITEXCEEDEDEXCEPTION_CODES
Exception
.
public static final java.util.Set OPERATIONNOTSUPPOERTEXCEPTION_CODES
Exception
.
public static final java.util.Set INVALIDNAMEEXCEPTION_CODES
Exception
.
public static final java.util.Set SCHEMAVIOLATIONEXCEPTION_CODES
SchemaViolationException
.
Method Detail |
public static java.util.Set getGeneralCodes()
GENERAL_CODES
public static java.util.Set getNonErroneousCodes()
NON_ERRONEOUS_CODES
public static java.util.Set getAttributeCodes()
ATTRIBUTE_CODES
public static java.util.Set getNameCodes()
NAME_CODES
public static java.util.Set getSecurityCodes()
SECURITY_CODES
public static java.util.Set getServiceCodes()
SERVICE_CODES
public static java.util.Set getUpdateCodes()
UPDATE_CODES
public static java.util.Set getCommonCodes()
COMMON_CODES
public static java.util.Set getBindCodes()
BIND_CODES
public static java.util.Set getSearchCodes()
SEARCH_CODES
public static java.util.Set getModifyCodes()
MODIFY_CODES
public static java.util.Set getAddCodes()
ADD_CODES
public static java.util.Set getDeleteCodes()
DELETE_CODES
public static java.util.Set getModifyDnCodes()
MODIFYDN_CODES
public static java.util.Set getCompareCodes()
COMPARE_CODES
public static java.util.Set getExtendedCodes()
EXTENDED_CODES
public static java.util.Set getAllCodes()
ALL_CODES
public static ResultCodeEnum getResultCodeEnum(int value)
value
- the result code constant.
public static ResultCodeEnum getBestEstimate(java.lang.Throwable t, MessageTypeEnum type)
OTHER
is returned.
t
- the throwable to estimate a result code fortype
- the type of operation being performed
public static java.util.Set getResultCodes(java.lang.Throwable t)
Unambiguous Exceptions ====================== CommunicationException ==> operationsError(1) TimeLimitExceededException ==> timeLimitExceeded(3) SizeLimitExceededException ==> sizeLimitExceeded(4) AuthenticationException ==> invalidCredentials(49) NoPermissionException ==> insufficientAccessRights(50) NoSuchAttributeException ==> noSuchAttribute(16) InvalidAttributeIdentifierException ==> undefinedAttributeType(17) InvalidSearchFilterException ==> inappropriateMatching(18) AttributeInUseException ==> attributeOrValueExists(20) NameNotFoundException ==> noSuchObject(32) NameAlreadyBoundException ==> entryAlreadyExists(68) ContextNotEmptyException ==> notAllowedOnNonLeaf(66) Ambiguous Exceptions ==================== NamingException --------------- operationsError(1) aliasProblem(33) aliasDereferencingProblem(36) loopDetect(54) affectsMultipleDSAs(71) other(80) AuthenticationNotSupportedException ----------------------------------- authMethodNotSupported (7) strongAuthRequired (8) confidentialityRequired (13) inappropriateAuthentication(48) ServiceUnavailableException --------------------------- busy(51) unavailable(52) InvalidAttributeValueException ------------------------------ constraintViolation(19) invalidAttributeSyntax(21) PartialResultException ---------------------- partialResults(9) referral(10) LimitExceededException ---------------------- referal(9) adminLimitExceeded(11) OperationNotSupportedException ------------------------------ unavailableCriticalExtention(12) unwillingToPerform(53) InvalidNameException -------------------- invalidDNSyntax(34) namingViolation(64) SchemaViolationException ------------------------ objectClassViolation(65) notAllowedOnRDN(67) objectClassModsProhibited(69)
t
- the Throwable to find the result code mappings for
public static ResultCodeEnum getResultCode(java.lang.Throwable t)
Unambiguous Exceptions ====================== CommunicationException ==> operationsError(1) TimeLimitExceededException ==> timeLimitExceeded(3) SizeLimitExceededException ==> sizeLimitExceeded(4) AuthenticationException ==> invalidCredentials(49) NoPermissionException ==> insufficientAccessRights(50) NoSuchAttributeException ==> noSuchAttribute(16) InvalidAttributeIdentifierException ==> undefinedAttributeType(17) InvalidSearchFilterException ==> inappropriateMatching(18) AttributeInUseException ==> attributeOrValueExists(20) NameNotFoundException ==> noSuchObject(32) NameAlreadyBoundException ==> entryAlreadyExists(68) ContextNotEmptyException ==> notAllowedOnNonLeaf(66)If we cannot find a mapping then null is returned.
t
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |