directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r980494 - /directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/LdapCoreSessionConnection.java
Date Thu, 29 Jul 2010 16:01:07 GMT
Author: elecharny
Date: Thu Jul 29 16:01:07 2010
New Revision: 980494

URL: http://svn.apache.org/viewvc?rev=980494&view=rev
Log:
Injected the error message into the LdapResult

Modified:
    directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/LdapCoreSessionConnection.java

Modified: directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/LdapCoreSessionConnection.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/LdapCoreSessionConnection.java?rev=980494&r1=980493&r2=980494&view=diff
==============================================================================
--- directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/LdapCoreSessionConnection.java
(original)
+++ directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/LdapCoreSessionConnection.java
Thu Jul 29 16:01:07 2010
@@ -175,6 +175,7 @@ public class LdapCoreSessionConnection i
         catch ( Exception e )
         {
             resp.getLdapResult().setResultCode( ResultCodeEnum.getResultCode( e ) );
+            resp.getLdapResult().setErrorMessage( e.getMessage() );
         }
 
         return resp;
@@ -198,6 +199,7 @@ public class LdapCoreSessionConnection i
         catch ( Exception e )
         {
             resp.getLdapResult().setResultCode( ResultCodeEnum.getResultCode( e ) );
+            resp.getLdapResult().setErrorMessage( e.getMessage() );
         }
 
         return resp;
@@ -234,6 +236,7 @@ public class LdapCoreSessionConnection i
         catch ( Exception e )
         {
             resp.getLdapResult().setResultCode( ResultCodeEnum.getResultCode( e ) );
+            resp.getLdapResult().setErrorMessage( e.getMessage() );
         }
 
         return resp;
@@ -255,6 +258,7 @@ public class LdapCoreSessionConnection i
         catch ( Exception e )
         {
             resp.getLdapResult().setResultCode( ResultCodeEnum.getResultCode( e ) );
+            resp.getLdapResult().setErrorMessage( e.getMessage() );
         }
 
         return resp;
@@ -276,6 +280,7 @@ public class LdapCoreSessionConnection i
         catch ( Exception e )
         {
             resp.getLdapResult().setResultCode( ResultCodeEnum.getResultCode( e ) );
+            resp.getLdapResult().setErrorMessage( e.getMessage() );
         }
 
         return resp;
@@ -315,6 +320,7 @@ public class LdapCoreSessionConnection i
         catch ( Exception e )
         {
             resp.getLdapResult().setResultCode( ResultCodeEnum.getResultCode( e ) );
+            resp.getLdapResult().setErrorMessage( e.getMessage() );
         }
 
         return resp;
@@ -346,6 +352,7 @@ public class LdapCoreSessionConnection i
         catch ( Exception e )
         {
             resp.getLdapResult().setResultCode( ResultCodeEnum.getResultCode( e ) );
+            resp.getLdapResult().setErrorMessage( e.getMessage() );
         }
 
         return resp;
@@ -367,6 +374,7 @@ public class LdapCoreSessionConnection i
         catch ( Exception e )
         {
             resp.getLdapResult().setResultCode( ResultCodeEnum.getResultCode( e ) );
+            resp.getLdapResult().setErrorMessage( e.getMessage() );
         }
 
         return resp;
@@ -530,6 +538,7 @@ public class LdapCoreSessionConnection i
         catch ( Exception e )
         {
             resp.getLdapResult().setResultCode( ResultCodeEnum.getResultCode( e ) );
+            resp.getLdapResult().setErrorMessage( e.getMessage() );
         }
 
         return resp;
@@ -566,6 +575,7 @@ public class LdapCoreSessionConnection i
         catch ( Exception e )
         {
             resp.getLdapResult().setResultCode( ResultCodeEnum.getResultCode( e ) );
+            resp.getLdapResult().setErrorMessage( e.getMessage() );
         }
 
         return resp;
@@ -596,6 +606,7 @@ public class LdapCoreSessionConnection i
         catch ( Exception e )
         {
             resp.getLdapResult().setResultCode( ResultCodeEnum.getResultCode( e ) );
+            resp.getLdapResult().setErrorMessage( e.getMessage() );
         }
 
         return resp;
@@ -623,6 +634,7 @@ public class LdapCoreSessionConnection i
         catch ( Exception e )
         {
             resp.getLdapResult().setResultCode( ResultCodeEnum.getResultCode( e ) );
+            resp.getLdapResult().setErrorMessage( e.getMessage() );
         }
 
         return resp;
@@ -644,6 +656,7 @@ public class LdapCoreSessionConnection i
         catch ( Exception e )
         {
             resp.getLdapResult().setResultCode( ResultCodeEnum.getResultCode( e ) );
+            resp.getLdapResult().setErrorMessage( e.getMessage() );
         }
 
         return resp;
@@ -674,6 +687,7 @@ public class LdapCoreSessionConnection i
         catch ( Exception e )
         {
             resp.getLdapResult().setResultCode( ResultCodeEnum.getResultCode( e ) );
+            resp.getLdapResult().setErrorMessage( e.getMessage() );
         }
 
         return resp;
@@ -695,6 +709,7 @@ public class LdapCoreSessionConnection i
         catch ( Exception e )
         {
             resp.getLdapResult().setResultCode( ResultCodeEnum.getResultCode( e ) );
+            resp.getLdapResult().setErrorMessage( e.getMessage() );
         }
 
         return resp;
@@ -781,6 +796,7 @@ public class LdapCoreSessionConnection i
         catch ( Exception e )
         {
             resp.getLdapResult().setResultCode( ResultCodeEnum.getResultCode( e ) );
+            resp.getLdapResult().setErrorMessage( e.getMessage() );
         }
 
         return resp;
@@ -826,6 +842,7 @@ public class LdapCoreSessionConnection i
 
             EntryFilteringCursor entryCursor = session.search( iSearchReq );
             entryCursor.beforeFirst();
+
             return new EntryToResponseCursor<SearchResponse>( entryCursor );
         }
         catch ( Exception e )



Mime
View raw message