directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r923834 - /directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/exception/
Date Tue, 16 Mar 2010 16:10:27 GMT
Author: elecharny
Date: Tue Mar 16 16:10:26 2010
New Revision: 923834

URL: http://svn.apache.org/viewvc?rev=923834&view=rev
Log:
Fixed the Exception which has more than one result code : there were a missing break in the
Switch() statement

Modified:
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/exception/LdapInvalidAttributeValueException.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/exception/LdapInvalidDnException.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/exception/LdapSchemaViolationException.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/exception/LdapServiceUnavailableException.java
    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/LdapInvalidAttributeValueException.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/exception/LdapInvalidAttributeValueException.java?rev=923834&r1=923833&r2=923834&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/exception/LdapInvalidAttributeValueException.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/exception/LdapInvalidAttributeValueException.java
Tue Mar 16 16:10:26 2010
@@ -78,8 +78,7 @@ public class LdapInvalidAttributeValueEx
         {
             case CONSTRAINT_VIOLATION :
             case INVALID_ATTRIBUTE_SYNTAX :
-                this.resultCode = resultCode;
-                break;
+                return;
                 
             default:
                 throw new IllegalArgumentException( I18n.err( I18n.ERR_04140, resultCode
) );

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/exception/LdapInvalidDnException.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/exception/LdapInvalidDnException.java?rev=923834&r1=923833&r2=923834&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/exception/LdapInvalidDnException.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/exception/LdapInvalidDnException.java
Tue Mar 16 16:10:26 2010
@@ -87,6 +87,7 @@ public class LdapInvalidDnException exte
         {
             case INVALID_DN_SYNTAX :
             case NAMING_VIOLATION :
+                return;
                 
             default:
                 throw new IllegalArgumentException( I18n.err( I18n.ERR_04140, resultCode
) );

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/exception/LdapSchemaViolationException.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/exception/LdapSchemaViolationException.java?rev=923834&r1=923833&r2=923834&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/exception/LdapSchemaViolationException.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/exception/LdapSchemaViolationException.java
Tue Mar 16 16:10:26 2010
@@ -80,6 +80,7 @@ public class LdapSchemaViolationExceptio
             case OBJECT_CLASS_VIOLATION :
             case NOT_ALLOWED_ON_RDN :
             case OBJECT_CLASS_MODS_PROHIBITED :
+                return;
                 
             default:
                 throw new IllegalArgumentException( I18n.err( I18n.ERR_04140, resultCode
) );

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/exception/LdapServiceUnavailableException.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/exception/LdapServiceUnavailableException.java?rev=923834&r1=923833&r2=923834&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/exception/LdapServiceUnavailableException.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/exception/LdapServiceUnavailableException.java
Tue Mar 16 16:10:26 2010
@@ -79,6 +79,7 @@ public class LdapServiceUnavailableExcep
         {
             case BUSY :
             case UNAVAILABLE :
+                return;
                 
             default:
                 throw new IllegalArgumentException( I18n.err( I18n.ERR_04140, resultCode
) );

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=923834&r1=923833&r2=923834&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
Tue Mar 16 16:10:26 2010
@@ -78,6 +78,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