From cfc513043c5830b5a967733066068c7097b42e3c Mon Sep 17 00:00:00 2001
From: kenneth_suter <kenneth_suter@localhost>
Date: Wed, 15 Aug 2007 21:34:53 +0000
Subject: [PATCH] This commit is a step toward getting OpenDS internationalized. There are still issues to be resolved before we can declare that we are internationalized but this commit covers the bulk of changes needed at this time.
---
opendj-sdk/opends/src/server/org/opends/server/tools/ClientException.java | 23 +++--------------------
1 files changed, 3 insertions(+), 20 deletions(-)
diff --git a/opendj-sdk/opends/src/server/org/opends/server/tools/ClientException.java b/opendj-sdk/opends/src/server/org/opends/server/tools/ClientException.java
index b42cedf..929b739 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/tools/ClientException.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/tools/ClientException.java
@@ -25,6 +25,7 @@
* Portions Copyright 2006-2007 Sun Microsystems, Inc.
*/
package org.opends.server.tools;
+import org.opends.messages.Message;
@@ -54,9 +55,6 @@
// problem.
private int exitCode;
- // The message ID for the message associated with this client exception.
- private int messageID;
-
/**
@@ -64,15 +62,13 @@
*
* @param exitCode The exit code that may be used if the client considers
* this to be a fatal problem.
- * @param messageID The unique identifier for the associated message.
* @param message The message that explains the problem that occurred.
*/
- public ClientException(int exitCode, int messageID, String message)
+ public ClientException(int exitCode, Message message)
{
super(message);
this.exitCode = exitCode;
- this.messageID = messageID;
}
@@ -82,17 +78,14 @@
*
* @param exitCode The exit code that may be used if the client considers
* this to be a fatal problem.
- * @param messageID The unique identifier for the associated message.
* @param message The message that explains the problem that occurred.
* @param cause The exception that was caught to trigger this exception.
*/
- public ClientException(int exitCode, int messageID, String message,
- Throwable cause)
+ public ClientException(int exitCode, Message message, Throwable cause)
{
super(message, cause);
this.exitCode = exitCode;
- this.messageID = messageID;
}
@@ -110,15 +103,5 @@
}
-
- /**
- * Retrieves the unique identifier for the associated message.
- *
- * @return The unique identifier for the associated message.
- */
- public int getMessageID()
- {
- return messageID;
- }
}
--
Gitblit v1.10.0