Class LdapOperationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.apache.directory.api.ldap.model.exception.LdapException
-
- org.apache.directory.api.ldap.model.exception.LdapOperationException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AbstractLdapReferralException,LdapAdminLimitExceededException,LdapAffectMultipleDsaException,LdapAliasDereferencingException,LdapAliasException,LdapAttributeInUseException,LdapAuthenticationException,LdapAuthenticationNotSupportedException,LdapCannotCancelException,LdapConfigurationException,LdapContextNotEmptyException,LdapEntryAlreadyExistsException,LdapInvalidAttributeTypeException,LdapInvalidAttributeValueException,LdapInvalidDnException,LdapInvalidSearchFilterException,LdapLoopDetectedException,LdapNoPermissionException,LdapNoSuchAttributeException,LdapNoSuchObjectException,LdapNoSuchOperationException,LdapOperationErrorException,LdapOtherException,LdapProtocolErrorException,LdapSchemaViolationException,LdapServiceUnavailableException,LdapSizeLimitExceededException,LdapStrongAuthenticationRequiredException,LdapTimeLimitExceededException,LdapTooLateException,LdapUnknownException,LdapUnwillingToPerformException
public class LdapOperationException extends LdapException
An class for LDAP operation exceptions which add LDAP specific information to Exceptions.- Author:
- Apache Directory Project
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected DnresolvedDnThe resolved Dnprotected ResultCodeEnumresultCodeThe operation resultCode
-
Constructor Summary
Constructors Constructor Description LdapOperationException(String message)Creates a new instance of LdapOperationException.LdapOperationException(String message, Throwable cause)Creates a new instance of LdapOperationException.LdapOperationException(ResultCodeEnum resultCode, String message)Creates a new instance of LdapOperationException.LdapOperationException(ResultCodeEnum resultCode, String message, Throwable cause)Creates a new instance of LdapOperationException.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DngetResolvedDn()ResultCodeEnumgetResultCode()Gets the LDAP result code that would be associated with this exception.voidsetResolvedDn(Dn resolvedDn)-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
resultCode
protected ResultCodeEnum resultCode
The operation resultCode
-
resolvedDn
protected Dn resolvedDn
The resolved Dn
-
-
Constructor Detail
-
LdapOperationException
public LdapOperationException(ResultCodeEnum resultCode, String message)
Creates a new instance of LdapOperationException.- Parameters:
resultCode- The operation resultCodemessage- The exception message
-
LdapOperationException
public LdapOperationException(ResultCodeEnum resultCode, String message, Throwable cause)
Creates a new instance of LdapOperationException.- Parameters:
resultCode- The operation resultCodemessage- The exception messagecause- The root cause for this exception
-
LdapOperationException
public LdapOperationException(String message)
Creates a new instance of LdapOperationException.- Parameters:
message- The exception message
-
-
Method Detail
-
getResultCode
public ResultCodeEnum getResultCode()
Gets the LDAP result code that would be associated with this exception.- Returns:
- the LDAP result code corresponding to this exception type.
-
getResolvedDn
public Dn getResolvedDn()
- Returns:
- the resolvedDn
-
setResolvedDn
public void setResolvedDn(Dn resolvedDn)
- Parameters:
resolvedDn- the resolvedDn to set
-
-