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

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by javax.naming.NamingException
              extended by javax.naming.NamingSecurityException
                  extended by javax.naming.NoPermissionException
                      extended by org.apache.directory.shared.ldap.exception.LdapNoPermissionException
All Implemented Interfaces:
java.io.Serializable, LdapException

public class LdapNoPermissionException
extends javax.naming.NoPermissionException
implements LdapException

A NoPermissionException which associates a resultCode namely the ResultCodeEnum#INSUFFICIENTACCESSRIGHTS resultCode with the exception.

Version:
$Rev: 477298 $
Author:
Apache Directory Project
See Also:
LdapException, NoPermissionException, LDAP ResultCode to JNDI Exception Mappings, Serialized Form

Field Summary
 
Fields inherited from class javax.naming.NamingException
remainingName, resolvedName, resolvedObj, rootException
 
Constructor Summary
LdapNoPermissionException()
           
LdapNoPermissionException(java.lang.String explanation)
           
 
Method Summary
 ResultCodeEnum getResultCode()
          Always returns ResultCodeEnum#INSUFFICIENTACCESSRIGHTS
 
Methods inherited from class javax.naming.NamingException
appendRemainingComponent, appendRemainingName, getCause, getExplanation, getRemainingName, getResolvedName, getResolvedObj, getRootCause, initCause, setRemainingName, setResolvedName, setResolvedObj, setRootCause, toString, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LdapNoPermissionException

public LdapNoPermissionException()
See Also:
NoPermissionException.NoPermissionException()

LdapNoPermissionException

public LdapNoPermissionException(java.lang.String explanation)
See Also:
NoPermissionException.NoPermissionException(String)
Method Detail

getResultCode

public ResultCodeEnum getResultCode()
Always returns ResultCodeEnum#INSUFFICIENTACCESSRIGHTS

Specified by:
getResultCode in interface LdapException
Returns:
the LDAP result code corresponding to this exception type.
See Also:
LdapException.getResultCode()


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