directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r980255 - /directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/exception/LdapUnwillingToPerformException.java
Date Wed, 28 Jul 2010 22:33:30 GMT
Author: elecharny
Date: Wed Jul 28 22:33:29 2010
New Revision: 980255

URL: http://svn.apache.org/viewvc?rev=980255&view=rev
Log:
Created some constructors that use the ResultCodeEnum.UNWILLING_TO_PERFORM value

Modified:
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/exception/LdapUnwillingToPerformException.java

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/exception/LdapUnwillingToPerformException.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/exception/LdapUnwillingToPerformException.java?rev=980255&r1=980254&r2=980255&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/exception/LdapUnwillingToPerformException.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/exception/LdapUnwillingToPerformException.java
Wed Jul 28 22:33:29 2010
@@ -6,16 +6,16 @@
  *  to you 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. 
- *  
+ *  under the License.
+ *
  */
 package org.apache.directory.shared.ldap.exception;
 
@@ -25,7 +25,7 @@ import org.apache.directory.shared.ldap.
 
 
 /**
- * An LDAPException that extends the {@link LdapOperationException} 
+ * An LDAPException that extends the {@link LdapOperationException}
  * carrying with it the corresponding result codes for this condition.
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
@@ -34,7 +34,17 @@ public class LdapUnwillingToPerformExcep
 {
     /** The serial version UUID */
     static final long serialVersionUID = 1L;
-    
+
+    /**
+     * Creates a new instance of LdapUnwillingToPerformException, with
+     * a default ResultCode to UNWILING_TO_PERFORM.
+     */
+    public LdapUnwillingToPerformException()
+    {
+        super( ResultCodeEnum.UNWILLING_TO_PERFORM, null );
+    }
+
+
     /**
      * Creates a new instance of LdapUnwillingToPerformException.
      *
@@ -51,7 +61,18 @@ public class LdapUnwillingToPerformExcep
 
     /**
      * Creates a new instance of LdapUnwillingToPerformException.
-     * 
+     *
+     * @param message The exception message
+     */
+    public LdapUnwillingToPerformException( String message )
+    {
+        super( ResultCodeEnum.UNWILLING_TO_PERFORM, message );
+    }
+
+
+    /**
+     * Creates a new instance of LdapUnwillingToPerformException.
+     *
      * @param resultCode the ResultCodeEnum for this exception
      */
     public LdapUnwillingToPerformException( ResultCodeEnum resultCode )
@@ -65,7 +86,7 @@ public class LdapUnwillingToPerformExcep
     /**
      * Checks to make sure the resultCode value is right for this exception
      * type.
-     * 
+     *
      * @throws IllegalArgumentException
      *             if the result code is not one of
      *             {@link ResultCodeEnum#UNWILLING_TO_PERFORM},
@@ -78,7 +99,7 @@ public class LdapUnwillingToPerformExcep
             case UNWILLING_TO_PERFORM :
             case UNAVAILABLE_CRITICAL_EXTENSION :
                 return;
-                
+
             default:
                 throw new IllegalArgumentException( I18n.err( I18n.ERR_04140, resultCode
) );
         }



Mime
View raw message