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/changelog/ChangelogDBException.java |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/opends/src/server/org/opends/server/synchronization/changelog/ChangelogDBException.java b/opends/src/server/org/opends/server/synchronization/changelog/ChangelogDBException.java
index 72e6783..542688c 100644
--- a/opends/src/server/org/opends/server/synchronization/changelog/ChangelogDBException.java
+++ b/opends/src/server/org/opends/server/synchronization/changelog/ChangelogDBException.java
@@ -26,12 +26,18 @@
  */
 package org.opends.server.synchronization.changelog;
 
+
+
+import org.opends.server.types.IdentifiedException;
+
+
+
 /**
  * This class define an Exception that must be used when some error
  * condition was detected in the changelog database that cannot be recovered
  * automatically.
  */
-public class ChangelogDBException extends Exception
+public class ChangelogDBException extends IdentifiedException
 {
   private int messageID;
 

--
Gitblit v1.10.0