01: /*
02: * Created on Jun 18, 2004
03: *
04: * To change the template for this generated file go to
05: * Window - Preferences - Java - Code Generation - Code and Comments
06: */
07: package com.sun.portal.sra.desktop.commands;
08:
09: public class CommandExecutionException extends Exception {
10: private Exception _exp;
11:
12: public CommandExecutionException(Exception e) {
13: _exp = e;
14: }
15:
16: public StringBuffer returnStackTrace() {
17: StringBuffer sb = new StringBuffer();
18: StackTraceElement[] slm = _exp.getStackTrace();
19:
20: for (int i = 0; i < slm.length; i++) {
21: sb.append(slm[i].toString());
22: sb.append("\n");
23: }
24:
25: return sb;
26: }
27: }
|