Skip to content
Snippets Groups Projects
Commit 08fcfd0a authored by Gregor Maier's avatar Gregor Maier
Browse files

Add try-catch clauses around all update queues.

Now we will at least get an error message when an Exception occurs
instead of silently killing the thread.
parent 1e6f631e
No related branches found
No related tags found
No related merge requests found
package net.floodlightcontroller.util;
import java.io.PrintWriter;
import java.io.StringWriter;
/**
* Utility class to get a stacktrace as a nice string
*
* @author gregor
*
*/
public class StackTraceUtil {
public static String stackTraceToString(Throwable t) {
StringWriter sw = new StringWriter();
t.printStackTrace(new PrintWriter(sw));
return sw.toString();
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment