-
-
Notifications
You must be signed in to change notification settings - Fork 691
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clarify the meaning of unchecked exceptions in the documentation
- Loading branch information
1 parent
a347d74
commit 9a5dc59
Showing
1 changed file
with
1 addition
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,4 +34,4 @@ You don't have to declare them in the [method signature](https://docs.oracle.com | |
|
||
### Examples of where they are used | ||
|
||
Unchecked exceptions are meant to be used for any error that can't be handled at runtime, e.g. running out of memory. | ||
Unchecked exceptions are typically caused by defects in the program and can be prevented by proper coding. Example: ArrayIndexOutOfBoundsException can be prevented by ensuring that the array indices are between 0 and the array's length. | ||
Check failure on line 37 in exercises/practice/error-handling/.docs/instructions.append.md GitHub Actions / Lint Markdown filesFiles should end with a single newline character
|