directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r351954 - /directory/shared/ldap/trunk/apache2-provider/src/main/java/org/apache/asn1new/ldap/TwixEncoder.java
Date Sat, 03 Dec 2005 14:49:41 GMT
Author: elecharny
Date: Sat Dec  3 06:49:37 2005
New Revision: 351954

URL: http://svn.apache.org/viewcvs?rev=351954&view=rev
Log:
Added the original error message to the ProviderException.
See http://issues.apache.org/jira/browse/DIRSNICKERS-111

Modified:
    directory/shared/ldap/trunk/apache2-provider/src/main/java/org/apache/asn1new/ldap/TwixEncoder.java

Modified: directory/shared/ldap/trunk/apache2-provider/src/main/java/org/apache/asn1new/ldap/TwixEncoder.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/trunk/apache2-provider/src/main/java/org/apache/asn1new/ldap/TwixEncoder.java?rev=351954&r1=351953&r2=351954&view=diff
==============================================================================
--- directory/shared/ldap/trunk/apache2-provider/src/main/java/org/apache/asn1new/ldap/TwixEncoder.java
(original)
+++ directory/shared/ldap/trunk/apache2-provider/src/main/java/org/apache/asn1new/ldap/TwixEncoder.java
Sat Dec  3 06:49:37 2005
@@ -86,9 +86,9 @@
         }
         catch ( EncoderException e )
         {
-        	log.error( "Twix encoder failed to encode object: " + obj );
+        	log.error( "Twix encoder failed to encode object: " + obj + ", error : " + e.getMessage()
 );
             ProviderException pe = new ProviderException( provider,
-                    "Twix encoder failed to encode object: " + obj );
+                    "Twix encoder failed to encode object: " + obj + ", error : " + e.getMessage()
);
             throw pe;
         }
     }
@@ -122,9 +122,9 @@
         }
         catch ( EncoderException e )
         {
-        	log.error( "Twix encoder failed to encode object: " + obj );
+        	log.error( "Twix encoder failed to encode object: " + obj + ", error : " + e.getMessage()
 );
             ProviderException pe = new ProviderException( provider,
-                    "Twix encoder failed to encode object: " + obj );
+                    "Twix encoder failed to encode object: " + obj + ", error : " + e.getMessage()
 );
             throw pe;
         }
     }
@@ -157,9 +157,9 @@
         }
         catch ( EncoderException e )
         {
-        	log.error( "Twix encoder failed to encode object: " + obj );
+        	log.error( "Twix encoder failed to encode object: " + obj + ", error : " + e.getMessage()
 );
             ProviderException pe = new ProviderException( provider,
-                    "Twix encoder failed to encode object: " + obj );
+                    "Twix encoder failed to encode object: " + obj + ", error : " + e.getMessage()
 );
             throw pe;
         }
     }
@@ -228,7 +228,7 @@
             catch ( IOException e )
             {
                 ProviderException pe = new ProviderException( provider,
-                        "Twix encoder failed to write object ");
+                        "Twix encoder failed to encode object, error : " + e.getMessage()
);
                 throw pe;
             }
         }



Mime
View raw message