From 7ecc0e85d3be3f47f5de1a4aa9a09ebb966081e5 Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Mon, 18 Jun 2007 15:50:28 +0000
Subject: [PATCH] Use the cause's message as the message for the admin client exception rather than the default implementation which contains the cause's class name as well (this is the correct behavior because admin client exceptions are supposed to "adapt" underlying impl exceptions, so they should use the adapted exception's message).
---
opendj-sdk/opends/src/server/org/opends/server/admin/client/AdminClientException.java | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/opendj-sdk/opends/src/server/org/opends/server/admin/client/AdminClientException.java b/opendj-sdk/opends/src/server/org/opends/server/admin/client/AdminClientException.java
index 0542c07..fd1fb28 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/admin/client/AdminClientException.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/admin/client/AdminClientException.java
@@ -67,7 +67,7 @@
* The cause.
*/
public AdminClientException(Throwable cause) {
- super(cause);
+ super(cause.getMessage(), cause);
}
--
Gitblit v1.10.0