summaryrefslogtreecommitdiff
path: root/scripting/workben/installer/ExceptionTraceHelper.java
diff options
context:
space:
mode:
Diffstat (limited to 'scripting/workben/installer/ExceptionTraceHelper.java')
-rw-r--r--scripting/workben/installer/ExceptionTraceHelper.java35
1 files changed, 14 insertions, 21 deletions
diff --git a/scripting/workben/installer/ExceptionTraceHelper.java b/scripting/workben/installer/ExceptionTraceHelper.java
index e0e5c92558da..ecde5e448072 100644
--- a/scripting/workben/installer/ExceptionTraceHelper.java
+++ b/scripting/workben/installer/ExceptionTraceHelper.java
@@ -21,36 +21,29 @@ import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
// class for propagating the exception stack traces across the Java/UNO bridge
-public class ExceptionTraceHelper
-{
- public static String getTrace( Exception e )
- {
+public class ExceptionTraceHelper {
+ public static String getTrace(Exception e) {
ByteArrayOutputStream baos = null;
PrintStream ps = null;
String result = "";
- try
- {
- baos = new ByteArrayOutputStream( 128 );
- ps = new PrintStream( baos );
- e.printStackTrace( ps );
- }
- finally
- {
- try
- {
- if ( baos != null )
- {
+
+ try {
+ baos = new ByteArrayOutputStream(128);
+ ps = new PrintStream(baos);
+ e.printStackTrace(ps);
+ } finally {
+ try {
+ if (baos != null) {
baos.close();
}
- if ( ps != null )
- {
+
+ if (ps != null) {
ps.close();
}
- }
- catch ( Exception excp )
- {
+ } catch (Exception excp) {
}
}
+
return result;
}
}