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/util/LDIFException.java |   32 +++++---------------------------
 1 files changed, 5 insertions(+), 27 deletions(-)

diff --git a/opends/src/server/org/opends/server/util/LDIFException.java b/opends/src/server/org/opends/server/util/LDIFException.java
index 85794ee..aedb16c 100644
--- a/opends/src/server/org/opends/server/util/LDIFException.java
+++ b/opends/src/server/org/opends/server/util/LDIFException.java
@@ -25,6 +25,7 @@
  *      Portions Copyright 2006-2007 Sun Microsystems, Inc.
  */
 package org.opends.server.util;
+import org.opends.messages.Message;
 
 
 
@@ -57,23 +58,18 @@
   // The line number of the last line read from the LDIF source.
   private final long lineNumber;
 
-  // The unique message ID for the associated message.
-  private final int messageID;
-
 
 
   /**
    * Creates a new LDIF exception with the provided information.
    *
-   * @param  messageID  The unique message ID for the provided message.
    * @param  message    The message to use for this LDIF exception.
    */
-  public LDIFException(int messageID, String message)
+  public LDIFException(Message message)
   {
     super(message);
 
 
-    this.messageID     = messageID;
     lineNumber         = -1;
     canContinueReading = true;
   }
@@ -83,16 +79,14 @@
   /**
    * Creates a new LDIF exception with the provided information.
    *
-   * @param  messageID  The unique message ID for the provided message.
    * @param  message    The message to use for this LDIF exception.
    * @param  cause      The underlying cause that triggered this LDIF exception.
    */
-  public LDIFException(int messageID, String message, Throwable cause)
+  public LDIFException(Message message, Throwable cause)
   {
     super(message, cause);
 
 
-    this.messageID     = messageID;
     lineNumber         = -1;
     canContinueReading = true;
   }
@@ -102,20 +96,18 @@
   /**
    * Creates a new LDIF exception with the provided information.
    *
-   * @param  messageID           The unique message ID for the provided message.
    * @param  message             The message to use for this LDIF exception.
    * @param  lineNumber          The line number of the last line read from the
    *                             LDIF source.
    * @param  canContinueReading  Indicates whether it is possible to continue
    *                             reading from the LDIF input source.
    */
-  public LDIFException(int messageID, String message, long lineNumber,
+  public LDIFException(Message message, long lineNumber,
                        boolean canContinueReading)
   {
     super(message);
 
 
-    this.messageID          = messageID;
     this.lineNumber         = lineNumber;
     this.canContinueReading = canContinueReading;
   }
@@ -126,7 +118,6 @@
    * Creates a new configuration exception with the provided message and
    * underlying cause.
    *
-   * @param  messageID           The unique message ID for the provided message.
    * @param  message             The message to use for this LDIF exception.
    * @param  canContinueReading  Indicates whether it is possible to continue
    *                             reading from the LDIF input source.
@@ -135,13 +126,12 @@
    * @param  cause               The underlying cause that triggered this LDIF
    *                             exception.
    */
-  public LDIFException(int messageID, String message, long lineNumber,
+  public LDIFException(Message message, long lineNumber,
                        boolean canContinueReading, Throwable cause)
   {
     super(message, cause);
 
 
-    this.messageID          = messageID;
     this.lineNumber         = lineNumber;
     this.canContinueReading = canContinueReading;
   }
@@ -149,18 +139,6 @@
 
 
   /**
-   * Retrieves the message ID for this exception.
-   *
-   * @return  The message ID for this exception.
-   */
-  public int getMessageID()
-  {
-    return messageID;
-  }
-
-
-
-  /**
    * Retrieves the line number of the last line read from the LDIF source.
    *
    * @return  The line number of the last line read from the LDIF source.

--
Gitblit v1.10.0