Skip to content

修正一个单词拼写错误 #518

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 23, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/book/15-Exceptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,7 @@ public class PreciseRethrow {

有趣的是,在 Throwable 的子类中,只有三种基本的异常类提供了带 cause 参数的构造器。它们是 Error(用于 Java 虚拟机报告系统错误)、Exception 以及 RuntimeException。如果要把其他类型的异常链接起来,应该使用 initCause() 方法而不是构造器。

下面的例子能让你在运行时动态地向 DymamicFields 对象添加字段:
下面的例子能让你在运行时动态地向 DynamicFields 对象添加字段:

```java
// exceptions/DynamicFields.java
Expand Down