1、新增自定义异常捕获处理类

2、新增保存“业务数据”逻辑:
This commit is contained in:
2019-06-13 16:53:19 +08:00
parent 61a90c8591
commit 60566a69c9
16 changed files with 184 additions and 30 deletions

View File

@@ -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());
}
}
}