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/DefaultBehaviorException.java |   31 +++++--------------------------
 1 files changed, 5 insertions(+), 26 deletions(-)

diff --git a/opends/src/server/org/opends/server/admin/DefaultBehaviorException.java b/opends/src/server/org/opends/server/admin/DefaultBehaviorException.java
index 55ed90d..cadf390 100644
--- a/opends/src/server/org/opends/server/admin/DefaultBehaviorException.java
+++ b/opends/src/server/org/opends/server/admin/DefaultBehaviorException.java
@@ -29,6 +29,10 @@
 
 
 
+import static org.opends.messages.AdminMessages.*;
+
+
+
 /**
  * This exception is thrown when a property's default values cannot be
  * determined. This can occur in the following situations:
@@ -47,9 +51,6 @@
    */
   private static final long serialVersionUID = -2542117466747573053L;
 
-  // The cause of this exception.
-  private final Throwable cause;
-
 
 
   /**
@@ -63,28 +64,6 @@
    *          being determined.
    */
   public DefaultBehaviorException(PropertyDefinition<?> pd, Throwable cause) {
-    super(pd);
-    this.cause = cause;
-  }
-
-
-
-  /**
-   * {@inheritDoc}
-   */
-  @Override
-  public Throwable getCause() {
-    return cause;
-  }
-
-
-
-  /**
-   * {@inheritDoc}
-   */
-  @Override
-  public String getMessage() {
-    return "The default values could not be determined "
-        + "for the property \"" + getPropertyDefinition().getName() + "\"";
+    super(pd, ERR_DEFAULT_BEHAVIOR_PROPERTY_EXCEPTION.get(pd.getName()), cause);
   }
 }

--
Gitblit v1.10.0