File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -1829,6 +1829,15 @@ so Swift also provides unsafe versions of some APIs.
18291829When you use types or methods whose name includes the word "unsafe",
18301830you take on the responsibility for safety.
18311831
1832+ Safe code in Swift can still encounter errors and unexpected failures,
1833+ which might stop the program's execution.
1834+ Safety makes no guarantee about whether your code runs to completion.
1835+ Swift provides several ways to indicate and recover from errors,
1836+ discussed in < doc:TheBasics#Error-Handling >
1837+ and < doc:TheBasics#Assertions-and-Preconditions > below.
1838+ However, in some cases,
1839+ the * only* safe way to handle an error is to stop execution.
1840+
18321841## Error Handling
18331842
18341843You use * error handling* to respond to error conditions
You can’t perform that action at this time.
0 commit comments