File tree 1 file changed +5
-2
lines changed 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 8
8
5 . [ 类] ( #类 )
9
9
6 . [ 测试] ( #测试 )
10
10
7 . [ 并发] ( #并发 )
11
- 8 . [ 错误处理] ( #error-handling )
11
+ 8 . [ 错误处理] ( #错误处理 )
12
12
9 . [ 格式化] ( #formatting )
13
13
10 . [ 评论] ( #comments )
14
14
@@ -1981,12 +1981,15 @@ async function getCleanCodeArticle() {
1981
1981
** [ ⬆ 返回顶部] ( #代码整洁的-javascript ) **
1982
1982
1983
1983
1984
- ## ** Error Handling **
1984
+ ## ** 错误处理 **
1985
1985
Thrown errors are a good thing! They mean the runtime has successfully
1986
1986
identified when something in your program has gone wrong and it's letting
1987
1987
you know by stopping function execution on the current stack, killing the
1988
1988
process (in Node), and notifying you in the console with a stack trace.
1989
1989
1990
+ 抛出错误是一件好事情! 他们意味着当你的程序有错时运行时可以成功确认, 并且通过停止执行当前堆栈
1991
+ 上的函数来让你知道, 结束当前进程(在 Node 中), 在控制台中用一个堆栈跟踪提示你。
1992
+
1990
1993
### Don't ignore caught errors
1991
1994
Doing nothing with a caught error doesn't give you the ability to ever fix
1992
1995
or react to said error. Logging the error to the console (` console.log ` )
You can’t perform that action at this time.
0 commit comments