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/LocalizedIllegalArgumentException.java |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/sdk/src/com/sun/opends/sdk/util/LocalizedIllegalArgumentException.java b/sdk/src/org/opends/sdk/LocalizedIllegalArgumentException.java
similarity index 90%
rename from sdk/src/com/sun/opends/sdk/util/LocalizedIllegalArgumentException.java
rename to sdk/src/org/opends/sdk/LocalizedIllegalArgumentException.java
index a1bdac6..8ab18d8 100644
--- a/sdk/src/com/sun/opends/sdk/util/LocalizedIllegalArgumentException.java
+++ b/sdk/src/org/opends/sdk/LocalizedIllegalArgumentException.java
@@ -25,7 +25,8 @@
  *      Copyright 2009 Sun Microsystems, Inc.
  */
 
-package com.sun.opends.sdk.util;
+package org.opends.sdk;
+
 
 
 
@@ -50,7 +51,7 @@
     IllegalArgumentException implements LocalizableException
 {
   // The I18N message associated with this exception.
-  private final Message message;
+  private final LocalizableMessage message;
 
 
 
@@ -61,7 +62,7 @@
    * @param message
    *          The message that explains the problem that occurred.
    */
-  public LocalizedIllegalArgumentException(Message message)
+  public LocalizedIllegalArgumentException(LocalizableMessage message)
   {
     super(String.valueOf(message));
     this.message = message;
@@ -81,7 +82,7 @@
    *          permitted, and indicates that the cause is nonexistent or
    *          unknown.
    */
-  public LocalizedIllegalArgumentException(Message message,
+  public LocalizedIllegalArgumentException(LocalizableMessage message,
       Throwable cause)
   {
     super(String.valueOf(message), cause);
@@ -93,7 +94,7 @@
   /**
    * {@inheritDoc}
    */
-  public Message getMessageObject()
+  public LocalizableMessage getMessageObject()
   {
     return this.message;
   }

--
Gitblit v1.10.0