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/quicksetup/org/opends/quicksetup/UserDataException.java |   25 ++++++++-----------------
 1 files changed, 8 insertions(+), 17 deletions(-)

diff --git a/opends/src/quicksetup/org/opends/quicksetup/UserDataException.java b/opends/src/quicksetup/org/opends/quicksetup/UserDataException.java
index a02edd0..0d02e3b 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/UserDataException.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/UserDataException.java
@@ -27,39 +27,30 @@
 
 package org.opends.quicksetup;
 
+import org.opends.messages.Message;
+import org.opends.server.types.OpenDsException;
+
 /**
  * This exception is used when there is an error with the data provided by
  * the user.  It will be thrown by the class that is in charge of validating
  * the user data (the Application class).
  *
  */
-public class UserDataException extends Exception
-{
+public class UserDataException extends OpenDsException {
+
   private static final long serialVersionUID = 1798143194655443132L;
 
   private WizardStep step;
 
-  private String localizedMessage;
-
   /**
    * Constructor for UserDataException.
    * @param step the step in the wizard where the exception occurred.
-   * @param localizedMessage the localized message describing the error.
+   * @param message the localized message describing the error.
    */
-  public UserDataException(WizardStep step, String localizedMessage)
+  public UserDataException(WizardStep step, Message message)
   {
-    super(localizedMessage);
+    super(message);
     this.step = step;
-    this.localizedMessage = localizedMessage;
-  }
-
-  /**
-   * Returns the localized message describing the error that occurred.
-   * @return the localized message describing the error that occurred.
-   */
-  public String getLocalizedMessage()
-  {
-    return localizedMessage;
   }
 
   /**

--
Gitblit v1.10.0