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/authorization/dseecompat/AciException.java |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/opends/src/server/org/opends/server/authorization/dseecompat/AciException.java b/opends/src/server/org/opends/server/authorization/dseecompat/AciException.java
index 924a960..da74266 100644
--- a/opends/src/server/org/opends/server/authorization/dseecompat/AciException.java
+++ b/opends/src/server/org/opends/server/authorization/dseecompat/AciException.java
@@ -26,6 +26,7 @@
  */
 package org.opends.server.authorization.dseecompat;
 
+import org.opends.server.types.IdentifiedException;
 
 /**
  * The AciException class defines an exception that may be thrown
@@ -33,9 +34,7 @@
  * or during evaluation of an LDAP operation using a set of applicable
  * ACIs.
  */
-public class AciException extends Exception {
-
-
+public class AciException extends IdentifiedException {
   /**
    * The serial version identifier required to satisfy the compiler because this
    * class extends <CODE>java.lang.Exception</CODE>, which implements the

--
Gitblit v1.10.0