From 1b9f39db0f5450de6c3bb97cec681c342fff5944 Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Tue, 08 Dec 2009 10:52:42 +0000
Subject: [PATCH] Move Message/MessageBuilder/LocalizableException/LocalizableIllegalArgumentException to public API since other public API elements reference them. Prefix Message/MessageBuilder with Localizable to emphasize that these classes are I18N related and not protocol messages. Keep MessageDescriptor private since users should not need access to it for now.

---
 sdk/src/org/opends/sdk/DecodeException.java |   18 ++++++++----------
 1 files changed, 8 insertions(+), 10 deletions(-)

diff --git a/sdk/src/org/opends/sdk/DecodeException.java b/sdk/src/org/opends/sdk/DecodeException.java
index 10e229e..c3c3384 100644
--- a/sdk/src/org/opends/sdk/DecodeException.java
+++ b/sdk/src/org/opends/sdk/DecodeException.java
@@ -31,8 +31,6 @@
 
 import java.io.IOException;
 
-import com.sun.opends.sdk.util.LocalizableException;
-import com.sun.opends.sdk.util.Message;
 
 
 
@@ -46,7 +44,7 @@
 public final class DecodeException extends IOException implements
     LocalizableException
 {
-  private final Message message;
+  private final LocalizableMessage message;
 
   private final boolean isFatal;
 
@@ -60,7 +58,7 @@
    *          The message that explains the problem that occurred.
    * @return The new fatal decode exception.
    */
-  public static DecodeException fatalError(Message message)
+  public static DecodeException fatalError(LocalizableMessage message)
   {
     return new DecodeException(message, true, null);
   }
@@ -77,7 +75,7 @@
    *          The underlying cause of this exception.
    * @return The new fatal decode exception.
    */
-  public static DecodeException fatalError(Message message,
+  public static DecodeException fatalError(LocalizableMessage message,
       Throwable cause)
   {
     return new DecodeException(message, true, cause);
@@ -92,7 +90,7 @@
    *          The message that explains the problem that occurred.
    * @return The new non-fatal decode exception.
    */
-  public static DecodeException error(Message message)
+  public static DecodeException error(LocalizableMessage message)
   {
     return new DecodeException(message, false, null);
   }
@@ -109,7 +107,7 @@
    *          The underlying cause of this exception.
    * @return The new non-fatal decode exception.
    */
-  public static DecodeException error(Message message, Throwable cause)
+  public static DecodeException error(LocalizableMessage message, Throwable cause)
   {
     return new DecodeException(message, false, cause);
   }
@@ -117,7 +115,7 @@
 
 
   // Construction is provided via factory methods.
-  private DecodeException(Message message, boolean isFatal,
+  private DecodeException(LocalizableMessage message, boolean isFatal,
       Throwable cause)
   {
     super(message.toString(), cause);
@@ -130,9 +128,9 @@
   /**
    * Returns the message that explains the problem that occurred.
    *
-   * @return Message of the problem
+   * @return LocalizableMessage of the problem
    */
-  public Message getMessageObject()
+  public LocalizableMessage getMessageObject()
   {
     return message;
   }

--
Gitblit v1.10.0