You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by ak...@apache.org on 2004/12/11 06:42:42 UTC

svn commit: r111577 - /incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/exception/LdapContextNotEmptyException.java

Author: akarasulu
Date: Fri Dec 10 21:42:39 2004
New Revision: 111577

URL: http://svn.apache.org/viewcvs?view=rev&rev=111577
Log:
adding new wrapper
Added:
   incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/exception/LdapContextNotEmptyException.java

Added: incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/exception/LdapContextNotEmptyException.java
Url: http://svn.apache.org/viewcvs/incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/exception/LdapContextNotEmptyException.java?view=auto&rev=111577
==============================================================================
--- (empty file)
+++ incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/exception/LdapContextNotEmptyException.java	Fri Dec 10 21:42:39 2004
@@ -0,0 +1,55 @@
+/*
+ *   Copyright 2004 The Apache Software Foundation
+ *
+ *   Licensed under the Apache License, Version 2.0 (the "License");
+ *   you may not use this file except in compliance with the License.
+ *   You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing, software
+ *   distributed under the License is distributed on an "AS IS" BASIS,
+ *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *   See the License for the specific language governing permissions and
+ *   limitations under the License.
+ *
+ */                                                            
+package org.apache.ldap.common.exception;
+
+
+import javax.naming.ContextNotEmptyException;
+
+import org.apache.ldap.common.message.ResultCodeEnum;
+
+
+/**
+ * A ContextNotEmptyException which contains an LDAP result code.
+ *
+ * @author <a href="mailto:directory-dev@incubator.apache.org">Apache Directory Project</a>
+ * @version $Rev$
+ */
+public class LdapContextNotEmptyException extends ContextNotEmptyException
+        implements LdapException
+{
+    public LdapContextNotEmptyException()
+    {
+        super();
+    }
+
+
+    public LdapContextNotEmptyException( String explanation )
+    {
+        super(explanation);
+    }
+
+
+    /**
+     * Gets the LDAP ResultCode for this exception type.
+     *
+     * @return {@link ResultCodeEnum#NOTALLOWEDONNONLEAF} always
+     */
+    public ResultCodeEnum getResultCode()
+    {
+        return ResultCodeEnum.NOTALLOWEDONNONLEAF;
+    }
+}