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/util/args/ArgumentException.java |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/opends/src/server/org/opends/server/util/args/ArgumentException.java b/opends/src/server/org/opends/server/util/args/ArgumentException.java
index e72297e..1ae1af6 100644
--- a/opends/src/server/org/opends/server/util/args/ArgumentException.java
+++ b/opends/src/server/org/opends/server/util/args/ArgumentException.java
@@ -28,12 +28,16 @@
 
 
 
+import org.opends.server.types.IdentifiedException;
+
+
+
 /**
  * This class defines an exception that may be thrown if there is a problem with
  * an argument definition.
  */
 public class ArgumentException
-       extends Exception
+       extends IdentifiedException
 {
   /**
    * The serial version identifier required to satisfy the compiler because this

--
Gitblit v1.10.0