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
-
-
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 Dn
getResolvedDn()
ResultCodeEnum
getResultCode()
Gets the LDAP result code that would be associated with this exception.void
setResolvedDn(Dn resolvedDn)
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
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
-
LdapOperationException
public LdapOperationException(String message, Throwable cause)
Creates a new instance of LdapOperationException.- Parameters:
message
- The exception messagecause
- The root cause for this exception
-
-
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
-
-