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/ManagedObjectNotFoundException.java | 17 +++++++++--------
1 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/opends/src/server/org/opends/server/admin/ManagedObjectNotFoundException.java b/opends/src/server/org/opends/server/admin/ManagedObjectNotFoundException.java
index da465f4..d2ab214 100644
--- a/opends/src/server/org/opends/server/admin/ManagedObjectNotFoundException.java
+++ b/opends/src/server/org/opends/server/admin/ManagedObjectNotFoundException.java
@@ -26,7 +26,11 @@
*/
package org.opends.server.admin;
-import org.opends.messages.Message;
+
+
+
+import static org.opends.messages.AdminMessages.*;
+
/**
@@ -39,28 +43,25 @@
*/
private static final long serialVersionUID = -477551786551892978L;
- // Simple description of this exception for debugging.
- private static final String MSG = // TODO: i18n
- "The requested managed object could not be found";
-
/**
* Create a managed object not found exception.
*/
public ManagedObjectNotFoundException() {
- super(Message.raw(MSG));
+ super(ERR_MANAGED_OBJECT_NOT_FOUND_EXCEPTION.get());
}
/**
- * Create a managed object not found exception with the specified cause.
+ * Create a managed object not found exception with the specified
+ * cause.
*
* @param cause
* The cause of this exception.
*/
public ManagedObjectNotFoundException(Throwable cause) {
- super(Message.raw(MSG), cause);
+ super(ERR_MANAGED_OBJECT_NOT_FOUND_EXCEPTION.get(), cause);
}
}
--
Gitblit v1.10.0