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/AuthorizationException.java | 15 ++++++++++-----
1 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/opends/src/server/org/opends/server/admin/client/AuthorizationException.java b/opends/src/server/org/opends/server/admin/client/AuthorizationException.java
index 81e21b7..9855609 100644
--- a/opends/src/server/org/opends/server/admin/client/AuthorizationException.java
+++ b/opends/src/server/org/opends/server/admin/client/AuthorizationException.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 an authorization error occurs while
@@ -47,22 +51,23 @@
/**
- * Create an authorization exception.
+ * Create an authorization exception with a default message.
*/
public AuthorizationException() {
- // No implementation required.
+ super(ERR_AUTHORIZATION_EXCEPTION_DEFAULT.get());
}
/**
- * Create an authorization exception with a cause.
+ * Create an authorization exception with a cause and a default
+ * message.
*
* @param cause
* The cause.
*/
public AuthorizationException(Throwable cause) {
- super(cause);
+ super(ERR_AUTHORIZATION_EXCEPTION_DEFAULT.get(), cause);
}
--
Gitblit v1.10.0