From de19fe2956d5a4b3817834191c51989664f8c47c Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Mon, 03 Sep 2007 20:36:20 +0000
Subject: [PATCH] Fix issue 1443: Admin framework: improve error logging in server

---
 opends/src/server/org/opends/server/admin/client/AuthenticationNotSupportedException.java |   16 +++++++++++-----
 1 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/opends/src/server/org/opends/server/admin/client/AuthenticationNotSupportedException.java b/opends/src/server/org/opends/server/admin/client/AuthenticationNotSupportedException.java
index 3907ddb..06d7f3a 100644
--- a/opends/src/server/org/opends/server/admin/client/AuthenticationNotSupportedException.java
+++ b/opends/src/server/org/opends/server/admin/client/AuthenticationNotSupportedException.java
@@ -26,10 +26,14 @@
  */
 
 package org.opends.server.admin.client;
-import org.opends.messages.Message;
 
 
 
+import static org.opends.messages.AdminMessages.*;
+
+import org.opends.messages.Message;
+
+
 
 /**
  * This exception is thrown when the particular flavor of
@@ -46,22 +50,24 @@
 
 
   /**
-   * Create an authentication not supported exception.
+   * Creates an authentication not supported exception with a default
+   * message.
    */
   public AuthenticationNotSupportedException() {
-    // No implementation required.
+    super(ERR_AUTHENTICATION_NOT_SUPPORTED_EXCEPTION_DEFAULT.get());
   }
 
 
 
   /**
-   * Create an authentication not supported exception with a cause.
+   * Creates an authentication not supported exception with a cause
+   * and a default message.
    *
    * @param cause
    *          The cause.
    */
   public AuthenticationNotSupportedException(Throwable cause) {
-    super(cause);
+    super(ERR_AUTHENTICATION_NOT_SUPPORTED_EXCEPTION_DEFAULT.get(), cause);
   }
 
 

--
Gitblit v1.10.0