| |
@@ -194,7 +194,7 @@
|
| |
`java.lang.Throwable`, but not from
|
| |
`java.lang.Exception`.
|
| |
|
| |
- The general expection is that run-time errors are avoided by
|
| |
+ The general exception is that run-time errors are avoided by
|
| |
careful programming (e.g., not dividing by zero). Checked
|
| |
exception are expected to be caught as they happen (e.g., when
|
| |
an input file is unexpectedly missing). Errors are impossible
|
| |
@@ -237,7 +237,7 @@
|
| |
|
| |
It is usually necessary to log errors. Otherwise, no trace of
|
| |
the problem might be left anywhere, making it very difficult
|
| |
- to diagnose realted failures. Consequently, if you catch
|
| |
+ to diagnose related failures. Consequently, if you catch
|
| |
`java.lang.Exception` to log and suppress all
|
| |
unexpected exceptions (for example, in a request dispatching
|
| |
loop), you should consider switching to
|
| |
Signed-off-by: Daiki Ueno dueno@redhat.com