Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
Swift
/
Error handling
When is try? the most accurate API choice?
from Error handling
Swift 6.3.3
beginner
1 min
When is try? the most accurate API choice?
Failure and ordinary absence intentionally have the same meaning, and no recovery needs the cause.
A decoding failure should be logged later with its exact coding path.
A disk write must either finish or tell the caller why it failed.
Check
Ask AI about this kata
Report an error
next kata
What guarantee does throws(ParseError) add to a function declaration?
Quiz
A new version is available
Reload