1、新增自定义异常捕获处理类
2、新增保存“业务数据”逻辑:
This commit is contained in:
@@ -60,7 +60,7 @@ public class RunTest<T> {
|
||||
//FBean fBean = new Gson().fromJson(str, FBean.class);
|
||||
FBean fBean = convert.convertFrom(FBean.class, str);
|
||||
|
||||
String[] parse = parser.parse(fBean);
|
||||
String[] parse = parser.parseList(fBean);
|
||||
|
||||
System.out.println("count:" + parse[0]);
|
||||
System.out.println("list:" + parse[1]);
|
||||
@@ -370,4 +370,14 @@ public class RunTest<T> {
|
||||
System.out.println("end");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void exceptionTest() {
|
||||
|
||||
try {
|
||||
throw new CfgException("hello exception: %s - %s - %s", 1, 2, "x");
|
||||
} catch (Exception e) {
|
||||
System.out.println(e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user