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/CommunicationException.java | 15 ++++++++++-----
1 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/opends/src/server/org/opends/server/admin/client/CommunicationException.java b/opends/src/server/org/opends/server/admin/client/CommunicationException.java
index 2bcfaec..01564a6 100644
--- a/opends/src/server/org/opends/server/admin/client/CommunicationException.java
+++ b/opends/src/server/org/opends/server/admin/client/CommunicationException.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 a communications related problem
@@ -48,22 +52,23 @@
/**
- * Create a communication exception.
+ * Create a communication exception with a default message.
*/
public CommunicationException() {
- // No implementation required.
+ super(ERR_COMMUNICATION_EXCEPTION_DEFAULT.get());
}
/**
- * Create a communication exception with a cause.
+ * Create a communication exception with a cause and a default
+ * message.
*
* @param cause
* The cause.
*/
public CommunicationException(Throwable cause) {
- super(cause);
+ super(ERR_COMMUNICATION_EXCEPTION_DEFAULT.get(), cause);
}
--
Gitblit v1.10.0