directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r1049160 - in /directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/exception: LdapOperationErrorException.java LdapOperationException.java
Date Tue, 14 Dec 2010 16:59:34 GMT
Author: seelmann
Date: Tue Dec 14 16:59:33 2010
New Revision: 1049160

URL: http://svn.apache.org/viewvc?rev=1049160&view=rev
Log:
Add exception cause

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

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/exception/LdapOperationErrorException.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/exception/LdapOperationErrorException.java?rev=1049160&r1=1049159&r2=1049160&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/exception/LdapOperationErrorException.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/exception/LdapOperationErrorException.java
Tue Dec 14 16:59:33 2010
@@ -47,6 +47,18 @@ public class LdapOperationErrorException
 
     /**
      * Creates a new instance of LdapOperationErrorException.
+     *
+     * @param message The exception message
+     * @param cause The root cause for this exception
+     */
+    public LdapOperationErrorException( String message, Throwable cause )
+    {
+        super( ResultCodeEnum.OPERATIONS_ERROR, message, cause );
+    }
+    
+    
+    /**
+     * Creates a new instance of LdapOperationErrorException.
      */
     public LdapOperationErrorException()
     {

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/exception/LdapOperationException.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/exception/LdapOperationException.java?rev=1049160&r1=1049159&r2=1049160&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/exception/LdapOperationException.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/exception/LdapOperationException.java
Tue Dec 14 16:59:33 2010
@@ -37,10 +37,11 @@ public class LdapOperationException exte
 
     /** The operation resultCode */
     protected ResultCodeEnum resultCode;
-    
+
     /** The resolved DN */
     protected DN resolvedDn;
 
+
     /**
      * @return the resolvedDn
      */
@@ -71,7 +72,21 @@ public class LdapOperationException exte
         this.resultCode = resultCode;
     }
 
-    
+
+    /**
+     * Creates a new instance of LdapOperationException.
+     *
+     * @param resultCode The operation resultCode
+     * @param message The exception message
+     * @param cause The root cause for this exception
+     */
+    public LdapOperationException( ResultCodeEnum resultCode, String message, Throwable cause
)
+    {
+        super( message, cause );
+        this.resultCode = resultCode;
+    }
+
+
     /**
      * Creates a new instance of LdapOperationException.
      *
@@ -81,8 +96,8 @@ public class LdapOperationException exte
     {
         super( message );
     }
-    
-    
+
+
     /**
      * Gets the LDAP result code that would be associated with this exception.
      * 



Mime
View raw message