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/ads/org/opends/admin/ads/ADSContextException.java |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/opends/src/ads/org/opends/admin/ads/ADSContextException.java b/opends/src/ads/org/opends/admin/ads/ADSContextException.java
index ea44f35..bbf37be 100644
--- a/opends/src/ads/org/opends/admin/ads/ADSContextException.java
+++ b/opends/src/ads/org/opends/admin/ads/ADSContextException.java
@@ -27,6 +27,8 @@
 
 package org.opends.admin.ads;
 
+import org.opends.messages.Message;
+import org.opends.server.types.OpenDsException;
 
 
 /**
@@ -34,7 +36,7 @@
  * @see org.opends.admin.ads.ADSContext
  *
  */
-public class ADSContextException extends Exception {
+public class ADSContextException extends OpenDsException {
 
   private static final long serialVersionUID = 1984039711031042813L;
 
@@ -154,7 +156,7 @@
   /**
    * {@inheritDoc}
    */
-  public String toString()
+  public Message getReason()
   {
     if (toString == null)
     {
@@ -164,7 +166,7 @@
         toString += "  Root cause: "+getCause().toString();
       }
     }
-    return toString;
+    return Message.raw(toString); // TODO: i18n
   }
 
   /**

--
Gitblit v1.10.0