public final class ExceptionCatcher extends Object
| 构造器和说明 |
|---|
ExceptionCatcher() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
addException(String exception)
增加异常信息 调用入口四
|
static void |
addException(String seedName,
String exception)
增加异常信息 调用入口二
|
static void |
addException(String seedName,
Throwable t)
增加异常信息 调用入口一
|
static void |
addException(Throwable t)
增加异常信息 调用入口三
|
static void |
clearExceptions()
每次抓取完成后都要清空一次异常缓存
|
static List<String> |
getAllExceptions() |
static List<String> |
getExceptions(String seedName) |
static String |
getStackTrace(Throwable t)
获取完整的堆栈信息
|
public static void clearExceptions()
public static String getStackTrace(Throwable t)
t - Throwablepublic static void addException(String seedName, Throwable t)
seedName - 种子名称t - Throwablepublic static void addException(String seedName, String exception)
seedName - 种子名称exception - 异常public static void addException(Throwable t)
t - Throwablepublic static void addException(String exception)
exception - 异常信息Copyright © 2018. All rights reserved.