xsddoc/src/net/sf/xframe/ex ExceptionUtil.java,1.5,1.6
Kurt Riede <[email protected]> Mon, 13 Dec 2004 13:22:16 +0000
| Newsgroups | gmane.text.xml.xframe.xsddoc.devel |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/xframe/xsddoc/src/net/sf/xframe/ex
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10184/src/net/sf/xframe/ex
Modified Files:
ExceptionUtil.java
Log Message:
minor code review
Index: ExceptionUtil.java
===================================================================
RCS file: /cvsroot/xframe/xsddoc/src/net/sf/xframe/ex/ExceptionUtil.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** ExceptionUtil.java 9 Dec 2004 12:42:16 -0000 1.5
--- ExceptionUtil.java 13 Dec 2004 13:22:13 -0000 1.6
***************
*** 132,147 ****
if (!printCascading) {
return result;
- } else {
- final StringBuffer sb = new StringBuffer();
- sb.append(result);
- Throwable cause = getCause(throwable, useReflection);
- while (null != cause) {
- sb.append("rethrown from");
- sb.append(LINE_SEPARATOR);
- sb.append(printStackTrace(cause, depth));
- cause = getCause(cause, useReflection);
- }
- return sb.toString();
}
}
--- 132,146 ----
if (!printCascading) {
return result;
}
+ final StringBuffer sb = new StringBuffer();
+ sb.append(result);
+ Throwable cause = getCause(throwable, useReflection);
+ while (null != cause) {
+ sb.append("rethrown from");
+ sb.append(LINE_SEPARATOR);
+ sb.append(printStackTrace(cause, depth));
+ cause = getCause(cause, useReflection);
+ }
+ return sb.toString();
}
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/