@@ -0,0 +1,400 @@
+package com.testclient.utils;%0A%0Aimport java.io.PrintWriter;%0Aimport java.io.StringWriter;%0A%0Apublic class ExceptionUtil %7B%0A%0A%09/**%0A%09 * %E8%BF%94%E5%9B%9E%E9%94%99%E8%AF%AF%E4%BF%A1%E6%81%AF%E5%AD%97%E7%AC%A6%E4%B8%B2%0A%09 *%0A%09 * @param ex%0A%09 *            Exception%0A%09 * @return %E9%94%99%E8%AF%AF%E4%BF%A1%E6%81%AF%E5%AD%97%E7%AC%A6%E4%B8%B2%0A%09 */%0A%09public static String getExceptionMessage(Exception ex) %7B%0A%09%09StringWriter sw = new StringWriter();%0A%09%09PrintWriter pw = new PrintWriter(sw);%0A%09%09ex.printStackTrace(pw);%0A%09%09return sw.toString();%0A%09%7D%0A%0A%7D%0A

Create ExceptionUtil.java