ExceptionTool异常处理工具类

public class ExceptionTool {
	public static String getStackTrace(Throwable aThrowable) {
		Writer result = new StringWriter();
	    PrintWriter printWriter = new PrintWriter(result);
	    aThrowable.printStackTrace(printWriter);
	    return result.toString();
	}
}

你可能感兴趣的:(exception)