From eebe112fb9a05226379250e0773a43b219be18da Mon Sep 17 00:00:00 2001
From: kenneth_suter <kenneth_suter@localhost>
Date: Wed, 02 May 2007 19:22:13 +0000
Subject: [PATCH] mproves the amount of logging that is done in quicksetup applications. Much of what was simply relayed to the user as progress messages is not logged also.
---
opends/src/quicksetup/org/opends/quicksetup/ApplicationException.java | 25 +++++++++++++++++++++++++
1 files changed, 25 insertions(+), 0 deletions(-)
diff --git a/opends/src/quicksetup/org/opends/quicksetup/ApplicationException.java b/opends/src/quicksetup/org/opends/quicksetup/ApplicationException.java
index 0362cac..5ecb378 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/ApplicationException.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/ApplicationException.java
@@ -40,6 +40,8 @@
{
private static final long serialVersionUID = -3527273444231560341L;
+ private String formattedMsg = null;
+
private Type type;
/**
@@ -124,6 +126,21 @@
}
/**
+ * The constructor of the ApplicationException.
+ * @param type the type of error we have.
+ * @param localizedMsg a localized string describing the problem.
+ * @param formattedMsg a localized message with extra formatting
+ * @param rootCause the root cause of this exception.
+ */
+ public ApplicationException(Type type, String localizedMsg,
+ String formattedMsg, Throwable rootCause)
+ {
+ super(localizedMsg, rootCause);
+ this.formattedMsg = formattedMsg;
+ this.type = type;
+ }
+
+ /**
* Returns the Type of this exception.
* @return the Type of this exception.
*/
@@ -133,6 +150,14 @@
}
/**
+ * Gets the localized message with extra formatting markup.
+ * @return String representing a formatted message.
+ */
+ public String getFormattedMessage() {
+ return formattedMsg;
+ }
+
+ /**
* {@inheritDoc}
*/
public String toString()
--
Gitblit v1.10.0