获取异常的详细信息
发布日期:2021-06-30 11:24:23 浏览次数:3 分类:技术文章

本文共 313 字,大约阅读时间需要 1 分钟。

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;	}

转载地址:https://it9527.blog.csdn.net/article/details/9716725 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:代码中设置TextView字体加粗
下一篇:Android借助Application重写App的Crash(完整版)

发表评论

最新留言

路过,博主的博客真漂亮。。
[***.116.15.85]2024年04月04日 19时09分58秒