org.apache.directory.shared.ldap.exception
Class LdapOperationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.directory.shared.ldap.exception.LdapException
              extended by org.apache.directory.shared.ldap.exception.LdapOperationException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AbstractLdapReferralException, LdapAffectMultipleDsaException, LdapAliasDereferencingException, LdapAliasException, LdapAttributeInUseException, LdapAuthenticationException, LdapAuthenticationNotSupportedException, LdapConfigurationException, LdapContextNotEmptyException, LdapEntryAlreadyExistsException, LdapInvalidAttributeTypeException, LdapInvalidAttributeValueException, LdapInvalidDnException, LdapInvalidSearchFilterException, LdapLoopDetectedException, LdapNoPermissionException, LdapNoSuchAttributeException, LdapNoSuchObjectException, LdapOperationErrorException, LdapOtherException, LdapProtocolErrorException, LdapSchemaViolationException, LdapServiceUnavailableException, LdapTimeLimitExceededException, LdapUnwillingToPerformException

public class LdapOperationException
extends LdapException

An class for LDAP operation exceptions which add LDAP specific information to Exceptions.

Version:
$Rev: 437007 $
Author:
Apache Directory Project
See Also:
Serialized Form

Field Summary
protected  DN resolvedDn
          The resolved DN
protected  ResultCodeEnum resultCode
          The operation resultCode
 
Constructor Summary
LdapOperationException(ResultCodeEnum resultCode, java.lang.String message)
          Creates a new instance of LdapOperationException.
LdapOperationException(java.lang.String message)
          Creates a new instance of LdapOperationException.
 
Method Summary
 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
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

resultCode

protected ResultCodeEnum resultCode
The operation resultCode


resolvedDn

protected DN resolvedDn
The resolved DN

Constructor Detail

LdapOperationException

public LdapOperationException(ResultCodeEnum resultCode,
                              java.lang.String message)
Creates a new instance of LdapOperationException.

Parameters:
resultCode - The operation resultCode
message - The exception message

LdapOperationException

public LdapOperationException(java.lang.String message)
Creates a new instance of LdapOperationException.

Parameters:
message - The exception message
Method Detail

getResolvedDn

public DN getResolvedDn()
Returns:
the resolvedDn

setResolvedDn

public void setResolvedDn(DN resolvedDn)
Parameters:
resolvedDn - the resolvedDn to set

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.


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.