Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
yihan12 authored Dec 22, 2023
1 parent d8471a2 commit e6600a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion javascript/Exception Handling/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# 异常处理

### 一般
### throw
> throw 语句用来抛出一个用户自定义的异常。当前函数的执行将被停止(throw 之后的语句将不会执行),并且控制将被传递到调用堆栈中的第一个 catch 块。如果调用者函数中没有 catch 块,程序将会终止。
```javascript
throw new Error('Exception message');
Expand Down

0 comments on commit e6600a4

Please sign in to comment.