84669 personnes étudient
152542 personnes étudient
20005 personnes étudient
5487 personnes étudient
7821 personnes étudient
359900 personnes étudient
3350 personnes étudient
180660 personnes étudient
48569 personnes étudient
18603 personnes étudient
40936 personnes étudient
1549 personnes étudient
1183 personnes étudient
32909 personnes étudient
看到有人问关于try catch的问题就突然自己也有一点疑问
我认为一般应用程序里面大致分为两种错误。第一种是应用级,比如提交失败,参数错误,404之类的第二种是系统级,比如某个类库找不到,数据库查询错误
我的做法是try catch处理系统级别的错误,应用级别的错误用另外的方法处理,虽然这种方式我觉得没有逻辑问题,但是总感觉怪怪的。。。。。。
有没有什么比较好的错误处理机制?或者说说你的处理方法(如果有不对的地方欢迎指出)
欢迎选择我的课程,让我们一起见证您的进步~~
欢迎选择我的课程,让我们一起见证您的进步~~