From 2fef5aa0046548cb88034553f522d907195a19f7 Mon Sep 17 00:00:00 2001
From: Nicolas Capponi <nicolas.capponi@forgerock.com>
Date: Mon, 02 Dec 2013 10:47:18 +0000
Subject: [PATCH] OpenDJ 3 : config framework

---
 opendj-admin/src/main/java/org/opends/server/admin/AdminRuntimeException.java |   92 ++++++++++++++++++++--------------------------
 1 files changed, 40 insertions(+), 52 deletions(-)

diff --git a/opendj-admin/src/main/java/org/opends/server/admin/AdminRuntimeException.java b/opendj-admin/src/main/java/org/opends/server/admin/AdminRuntimeException.java
index 379e2d1..64a3629 100644
--- a/opendj-admin/src/main/java/org/opends/server/admin/AdminRuntimeException.java
+++ b/opendj-admin/src/main/java/org/opends/server/admin/AdminRuntimeException.java
@@ -27,65 +27,53 @@
 
 package org.opends.server.admin;
 
-
-
-import org.opends.messages.Message;
-
-
+import org.forgerock.i18n.LocalizableMessage;
 
 /**
- * Exceptions thrown when interacting with administration framework
- * that applications are not expected to catch.
+ * Exceptions thrown when interacting with administration framework that
+ * applications are not expected to catch.
  */
 public abstract class AdminRuntimeException extends RuntimeException {
 
-  /**
-   * Fake serialization ID.
-   */
-  private static final long serialVersionUID = 1L;
+    /**
+     * Fake serialization ID.
+     */
+    private static final long serialVersionUID = 1L;
 
+    // LocalizableMessage that explains the problem.
+    private final LocalizableMessage message;
 
+    /**
+     * Create an admin runtime exception with a message and cause.
+     *
+     * @param message
+     *            The message.
+     * @param cause
+     *            The cause.
+     */
+    protected AdminRuntimeException(LocalizableMessage message, Throwable cause) {
+        super(message.toString(), cause);
+        this.message = message;
+    }
 
-  // Message that explains the problem.
-  private final Message message;
+    /**
+     * Create an admin runtime exception with a message.
+     *
+     * @param message
+     *            The message.
+     */
+    protected AdminRuntimeException(LocalizableMessage message) {
+        super(message.toString());
+        this.message = message;
+    }
 
-
-
-  /**
-   * Create an admin runtime exception with a message and cause.
-   *
-   * @param message
-   *          The message.
-   * @param cause
-   *          The cause.
-   */
-  protected AdminRuntimeException(Message message, Throwable cause) {
-    super(message.toString(), cause);
-    this.message = message;
-  }
-
-
-
-  /**
-   * Create an admin runtime exception with a message.
-   *
-   * @param message
-   *          The message.
-   */
-  protected AdminRuntimeException(Message message) {
-    super(message.toString());
-    this.message = message;
-  }
-
-
-
-  /**
-   * Returns the message that explains the problem that occurred.
-   *
-   * @return Returns the message describing the problem that occurred
-   *         (never <code>null</code>).
-   */
-  public Message getMessageObject() {
-    return this.message;
-  }
+    /**
+     * Returns the message that explains the problem that occurred.
+     *
+     * @return Returns the message describing the problem that occurred (never
+     *         <code>null</code>).
+     */
+    public LocalizableMessage getLocalizableMessageObject() {
+        return this.message;
+    }
 }

--
Gitblit v1.10.0