From 8213b81bb81d462f08ce9c429f3445f36b35fa16 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Fri, 20 Apr 2007 23:28:00 +0000
Subject: [PATCH] Update the code to provide a convenience method for generating more user-friendly error messages from exceptions.  For exceptions generated within the project, we'll just use the user-provided message and also display the unique message ID.  For null pointer exceptions, we'll display the fact that it was a null pointer exception and the source file and line number on which it occurred.  For invocation target exceptions, we'll handle the wrapped exception.  For all other types of exceptions, we'll display the name of the exception class and the message, or if there is no message the source file and line number.

---
 opends/src/server/org/opends/server/synchronization/plugin/SynchronizationDomain.java |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/opends/src/server/org/opends/server/synchronization/plugin/SynchronizationDomain.java b/opends/src/server/org/opends/server/synchronization/plugin/SynchronizationDomain.java
index 728fecf..743d24d 100644
--- a/opends/src/server/org/opends/server/synchronization/plugin/SynchronizationDomain.java
+++ b/opends/src/server/org/opends/server/synchronization/plugin/SynchronizationDomain.java
@@ -962,7 +962,7 @@
             catch(DirectoryException de)
             {
               // Returns an error message to notify the sender
-              int msgID = de.getErrorMessageID();
+              int msgID = de.getMessageID();
               ErrorMessage errorMsg = new ErrorMessage(initMsg.getsenderID(),
                   msgID, de.getMessage());
               broker.publish(errorMsg);
@@ -980,7 +980,7 @@
             catch(DirectoryException de)
             {
               // Return an error message to notify the sender
-              int msgID = de.getErrorMessageID();
+              int msgID = de.getMessageID();
               ErrorMessage errorMsg = new ErrorMessage(initMsg.getsenderID(),
                   msgID, de.getMessage());
               log(getMessage(msgID, backend.getBackendID()) + de.getMessage());

--
Gitblit v1.10.0