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 2005/09/20 19:07:21 UTC
svn commit: r290487 -
/directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/exception/LdapInvalidAttributeIdentifierException.java
Author: akarasulu
Date: Tue Sep 20 10:07:18 2005
New Revision: 290487
URL: http://svn.apache.org/viewcvs?rev=290487&view=rev
Log:
adding new exception analog for InvalidAttributeIdentifierExceptions
Added:
directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/exception/LdapInvalidAttributeIdentifierException.java (with props)
Added: directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/exception/LdapInvalidAttributeIdentifierException.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/exception/LdapInvalidAttributeIdentifierException.java?rev=290487&view=auto
==============================================================================
--- directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/exception/LdapInvalidAttributeIdentifierException.java (added)
+++ directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/exception/LdapInvalidAttributeIdentifierException.java Tue Sep 20 10:07:18 2005
@@ -0,0 +1,66 @@
+/*
+ * 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.directory.AttributeInUseException;
+import javax.naming.directory.InvalidAttributeIdentifierException;
+
+import org.apache.ldap.common.message.ResultCodeEnum;
+
+
+/**
+ * A subclass of InvalidAttributeIdentifierException which holds the LDAP resultCode
+ * associated with the exception. The LDAP result code associated with this
+ * exception is the undefinedAttributeType result code value of 17.
+ *
+ * @see <a href="http://java.sun.com/j2se/1.4.2/docs/guide/jndi/jndi-ldap-gl.html#EXCEPT">
+ * LDAP ResultCode to JNDI Exception Mappings</a>
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ */
+public class LdapInvalidAttributeIdentifierException extends InvalidAttributeIdentifierException
+ implements LdapException
+{
+ static final long serialVersionUID = 886120483680893537L;
+
+
+ /**
+ * @see javax.naming.directory.InvalidAttributeIdentifierException#InvalidAttributeIdentifierException()
+ */
+ public LdapInvalidAttributeIdentifierException()
+ {
+ super();
+ }
+
+
+ /**
+ * @see javax.naming.directory.InvalidAttributeIdentifierException#InvalidAttributeIdentifierException(String)
+ */
+ public LdapInvalidAttributeIdentifierException( String explanation )
+ {
+ super( explanation );
+ }
+
+
+ /**
+ * @see LdapException#getResultCode()
+ */
+ public ResultCodeEnum getResultCode()
+ {
+ return ResultCodeEnum.UNDEFINEDATTRIBUTETYPE;
+ }
+}
Propchange: directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/exception/LdapInvalidAttributeIdentifierException.java
------------------------------------------------------------------------------
svn:eol-style = native