From 80c58327faaa4873369f6bb949e62792c2f708e0 Mon Sep 17 00:00:00 2001
From: kenneth_suter <kenneth_suter@localhost>
Date: Wed, 15 Aug 2007 21:34:53 +0000
Subject: [PATCH] This commit is a step toward getting OpenDS internationalized. There are still issues to be resolved before we can declare that we are internationalized but this commit covers the bulk of changes needed at this time.

---
 opends/src/server/org/opends/server/authorization/dseecompat/AciException.java |   25 ++++---------------------
 1 files changed, 4 insertions(+), 21 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 da74266..0eea819 100644
--- a/opends/src/server/org/opends/server/authorization/dseecompat/AciException.java
+++ b/opends/src/server/org/opends/server/authorization/dseecompat/AciException.java
@@ -25,9 +25,11 @@
  *      Portions Copyright 2007 Sun Microsystems, Inc.
  */
 package org.opends.server.authorization.dseecompat;
+import org.opends.messages.Message;
 
 import org.opends.server.types.IdentifiedException;
 
+
 /**
  * The AciException class defines an exception that may be thrown
  * either during ACI syntax verification of an "aci" attribute type value
@@ -44,11 +46,6 @@
    */
   private static final long serialVersionUID = -2763328522960628853L;
 
-    /*
-     * The unique message ID for the associated message.
-     */
-    private int messageID;
-
     /**
      * Constructs a new exception with <code>null</code> as its detail message.
      * The cause is not initialized. Used to break out of a recursive bind rule
@@ -61,36 +58,22 @@
     /**
      * Creates a new ACI exception with the provided message.
      *
-     * @param  messageID  The unique message ID for the provided message.
      * @param  message    The message to use for this ACI exception.
      */
-    public AciException(int messageID, String message) {
+    public AciException(Message message) {
       super(message);
-      this.messageID = messageID;
     }
 
     /**
      * Creates a new ACI exception with the provided message and root
      * cause.
      *
-     * @param  messageID  The unique identifier for the associated message.
      * @param  message    The message that explains the problem that occurred.
      * @param  cause      The exception that was caught to trigger this
      *                    exception.
      */
-    public AciException(int messageID, String message, Throwable cause) {
+    public AciException(Message message, Throwable cause) {
       super(message, cause);
-
-
-      this.messageID = messageID;
     }
 
-  /**
-   * Retrieves the message ID for this exception.
-   *
-   * @return  The message ID for this exception.
-   */
-  public int getMessageID() {
-    return messageID;
-  }
 }

--
Gitblit v1.10.0