Return-Path: Delivered-To: apmail-incubator-directory-cvs-archive@www.apache.org Received: (qmail 98725 invoked from network); 11 Dec 2004 05:42:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 11 Dec 2004 05:42:44 -0000 Received: (qmail 58051 invoked by uid 500); 11 Dec 2004 05:42:44 -0000 Delivered-To: apmail-incubator-directory-cvs-archive@incubator.apache.org Received: (qmail 58014 invoked by uid 500); 11 Dec 2004 05:42:44 -0000 Mailing-List: contact directory-cvs-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: directory-dev@incubator.apache.org Delivered-To: mailing list directory-cvs@incubator.apache.org Received: (qmail 58001 invoked by uid 99); 11 Dec 2004 05:42:43 -0000 X-ASF-Spam-Status: No, hits=-10.0 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from minotaur.apache.org (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.28) with SMTP; Fri, 10 Dec 2004 21:42:43 -0800 Received: (qmail 98664 invoked by uid 65534); 11 Dec 2004 05:42:42 -0000 Date: 11 Dec 2004 05:42:42 -0000 Message-ID: <20041211054242.98656.qmail@minotaur.apache.org> From: akarasulu@apache.org To: directory-cvs@incubator.apache.org Subject: svn commit: r111577 - /incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/exception/LdapContextNotEmptyException.java MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N 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 Apache Directory Project + * @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; + } +}