获取异常的详细信息

public static String getUncaughtException(Throwable throwable){
		StringWriter stringWriter = new StringWriter();
		PrintWriter printWriter = new PrintWriter(stringWriter);
		throwable.printStackTrace(printWriter);
		printWriter.close();
		String uncaughtException=stringWriter.toString();
		return uncaughtException;

	}

上一篇:LeakedSource披露俄Mail.Ru泄露2500万账户信息 Mail.Ru拒绝承认


下一篇:使用代码查看Nutch爬取的网站后生成的SequenceFile信息