You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by de...@apache.org on 2014/04/08 17:01:40 UTC
svn commit: r1585749 -
/uima/sandbox/uima-ducc/trunk/uima-ducc-common/src/main/java/org/apache/uima/ducc/common/utils/ExceptionHelper.java
Author: degenaro
Date: Tue Apr 8 15:01:40 2014
New Revision: 1585749
URL: http://svn.apache.org/r1585749
Log:
UIMA-3725 DUCC Job Driver (JD) hangs if an Error occurs during initialization phase
Modified:
uima/sandbox/uima-ducc/trunk/uima-ducc-common/src/main/java/org/apache/uima/ducc/common/utils/ExceptionHelper.java
Modified: uima/sandbox/uima-ducc/trunk/uima-ducc-common/src/main/java/org/apache/uima/ducc/common/utils/ExceptionHelper.java
URL: http://svn.apache.org/viewvc/uima/sandbox/uima-ducc/trunk/uima-ducc-common/src/main/java/org/apache/uima/ducc/common/utils/ExceptionHelper.java?rev=1585749&r1=1585748&r2=1585749&view=diff
==============================================================================
--- uima/sandbox/uima-ducc/trunk/uima-ducc-common/src/main/java/org/apache/uima/ducc/common/utils/ExceptionHelper.java (original)
+++ uima/sandbox/uima-ducc/trunk/uima-ducc-common/src/main/java/org/apache/uima/ducc/common/utils/ExceptionHelper.java Tue Apr 8 15:01:40 2014
@@ -20,11 +20,11 @@ package org.apache.uima.ducc.common.util
public class ExceptionHelper {
- public static String summarize(Exception e) {
+ public static String summarize(Throwable t) {
StringBuffer sb = new StringBuffer();
- if(e != null) {
- sb.append(e.getClass().getCanonicalName());
- StackTraceElement[] steArray = e.getStackTrace();
+ if(t != null) {
+ sb.append(t.getClass().getCanonicalName());
+ StackTraceElement[] steArray = t.getStackTrace();
if (steArray != null) {
if(steArray.length > 0) {
StackTraceElement ste = steArray[0];
@@ -37,9 +37,9 @@ public class ExceptionHelper {
sb.append(":");
sb.append(ste.getLineNumber());
sb.append(")");
- if (e.getCause() != null) {
+ if (t.getCause() != null) {
sb.append(" cause: ");
- sb.append(e.getCause());
+ sb.append(t.getCause());
}
}