From 20df27fbd253139d3e5a24dd6e8063ed11dd1fab Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Fri, 04 Dec 2009 11:12:28 +0000
Subject: [PATCH] Merge Bo's most recent changes.

---
 sdk/src/org/opends/sdk/AbstractConnection.java |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/sdk/src/org/opends/sdk/AbstractConnection.java b/sdk/src/org/opends/sdk/AbstractConnection.java
index 0f29a4c..b36f3cf 100644
--- a/sdk/src/org/opends/sdk/AbstractConnection.java
+++ b/sdk/src/org/opends/sdk/AbstractConnection.java
@@ -254,10 +254,10 @@
     {
       // Got more entries than expected.
       Result result = Responses.newResult(
-          ResultCode.CLIENT_SIDE_LOCAL_ERROR).setDiagnosticMessage(
+          ResultCode.CLIENT_SIDE_MORE_RESULTS_TO_RETURN).setDiagnosticMessage(
           ERR_UNEXPECTED_SEARCH_RESULT_ENTRIES.get(handler.entryCount)
               .toString());
-      throw new ErrorResultException(result);
+      throw ErrorResultException.wrap(result);
     }
     else if (handler.firstReference != null)
     {
@@ -267,7 +267,7 @@
           ERR_UNEXPECTED_SEARCH_RESULT_REFERENCES.get(
               handler.firstReference.getURIs().iterator().next())
               .toString());
-      throw new ErrorResultException(result);
+      throw ErrorResultException.wrap(result);
     }
     else
     {

--
Gitblit v1.10.0