From 80c58327faaa4873369f6bb949e62792c2f708e0 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.
---
opends/src/server/org/opends/server/protocols/asn1/ASN1Exception.java | 26 +++-----------------------
1 files changed, 3 insertions(+), 23 deletions(-)
diff --git a/opends/src/server/org/opends/server/protocols/asn1/ASN1Exception.java b/opends/src/server/org/opends/server/protocols/asn1/ASN1Exception.java
index 1edd006..2bc27b2 100644
--- a/opends/src/server/org/opends/server/protocols/asn1/ASN1Exception.java
+++ b/opends/src/server/org/opends/server/protocols/asn1/ASN1Exception.java
@@ -25,6 +25,7 @@
* Portions Copyright 2006-2007 Sun Microsystems, Inc.
*/
package org.opends.server.protocols.asn1;
+import org.opends.messages.Message;
@@ -50,24 +51,16 @@
- // The message ID for the message associated with this initialization
- // exception.
- private int messageID;
-
/**
* Creates a new ASN.1 exception with the provided message.
*
- * @param messageID The unique identifier for the associated message.
* @param message The message that explains the problem that occurred.
*/
- public ASN1Exception(int messageID, String message)
+ public ASN1Exception(Message message)
{
super(message);
-
-
- this.messageID = messageID;
}
@@ -76,28 +69,15 @@
* Creates a new ASN.1 exception with the provided message and root
* cause.
*
- * @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 ASN1Exception(int messageID, String message, Throwable cause)
+ public ASN1Exception(Message message, Throwable cause)
{
super(message, cause);
-
-
- this.messageID = messageID;
}
- /**
- * 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