summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Campo2008-01-24 08:49:42 (EST)
committerChristian Campo2008-01-24 08:49:42 (EST)
commit20ab1b4e54d51bf12ec30abf466c4afd2757032e (patch)
tree8f3f03a392a001b35f9c4e280a24849f3b9cd8cb
parent803bc34d7c7fc8bca1f3b0e942ef471dad95f630 (diff)
downloadorg.eclipse.riena-20ab1b4e54d51bf12ec30abf466c4afd2757032e.zip
org.eclipse.riena-20ab1b4e54d51bf12ec30abf466c4afd2757032e.tar.gz
org.eclipse.riena-20ab1b4e54d51bf12ec30abf466c4afd2757032e.tar.bz2
commented out toString method since it is not printing the message
-rw-r--r--org.eclipse.riena.core/src/org/eclipse/riena/core/exception/Failure.java54
1 files changed, 27 insertions, 27 deletions
diff --git a/org.eclipse.riena.core/src/org/eclipse/riena/core/exception/Failure.java b/org.eclipse.riena.core/src/org/eclipse/riena/core/exception/Failure.java
index e1f8687..c713fe1 100644
--- a/org.eclipse.riena.core/src/org/eclipse/riena/core/exception/Failure.java
+++ b/org.eclipse.riena.core/src/org/eclipse/riena/core/exception/Failure.java
@@ -10,7 +10,6 @@
*******************************************************************************/
package org.eclipse.riena.core.exception;
-import java.text.DateFormat;
import java.text.MessageFormat;
import java.util.Date;
@@ -362,32 +361,33 @@ public abstract class Failure extends RuntimeException {
/**
* @see java.lang.Object#toString()
*/
- public String toString() {
-
- StringBuilder failureText = new StringBuilder(this.getClass().getName());
- failureText.append(":\n - serverMsg \t\t\t= ");
- failureText.append(getServerMsg());
- failureText.append("\n - cause \t\t\t\t= ");
- failureText.append(getCauseClassName());
- failureText.append("\n - id \t\t\t\t\t= ");
- failureText.append(getId());
- failureText.append("\n - timestamp \t\t\t= ");
- failureText.append(DateFormat.getInstance().format(timestamp));
- failureText.append("\n - callerClassName \t= ");
- failureText.append(getCallerClassName());
- failureText.append("\n - callerClassVersion \t= ");
- failureText.append(getCallerClassVersion());
- failureText.append("\n - callerMethodName \t= ");
- failureText.append(getCallerMethodName());
- failureText.append("\n - nativeErrorCode \t= ");
- failureText.append(getNativeErrorCode());
- failureText.append("\n - clientMsg \t\t\t= ");
- failureText.append(getClientMsg());
- failureText.append("\n - javaVersion \t\t= ");
- failureText.append(getJavaVersion());
- return failureText.toString();
- }
-
+ // commented out so that we see the toString from Throwable until we have a
+ // decent implementation TODO
+ // public String toString() {
+ //
+ // StringBuilder failureText = new StringBuilder(this.getClass().getName());
+ // failureText.append(":\n - serverMsg \t\t\t= ");
+ // failureText.append(getServerMsg());
+ // failureText.append("\n - cause \t\t\t\t= ");
+ // failureText.append(getCauseClassName());
+ // failureText.append("\n - id \t\t\t\t\t= ");
+ // failureText.append(getId());
+ // failureText.append("\n - timestamp \t\t\t= ");
+ // failureText.append(DateFormat.getInstance().format(timestamp));
+ // failureText.append("\n - callerClassName \t= ");
+ // failureText.append(getCallerClassName());
+ // failureText.append("\n - callerClassVersion \t= ");
+ // failureText.append(getCallerClassVersion());
+ // failureText.append("\n - callerMethodName \t= ");
+ // failureText.append(getCallerMethodName());
+ // failureText.append("\n - nativeErrorCode \t= ");
+ // failureText.append(getNativeErrorCode());
+ // failureText.append("\n - clientMsg \t\t\t= ");
+ // failureText.append(getClientMsg());
+ // failureText.append("\n - javaVersion \t\t= ");
+ // failureText.append(getJavaVersion());
+ // return failureText.toString();
+ // }
private String getCauseClassName() {
if (getCause() != null) {
return getCause().getClass().getName();