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
What guarantee does throws(ParseError) add to a function declaration?
from Error handling
Swift 6.3.3
intermediate
1 min
What guarantee does throws(ParseError) add to a function declaration?
The function can propagate only ParseError, and the concrete failure type is part of its function type.
Every ParseError is caught automatically at the call site.
The function can return ParseError without using throw.
The runtime retries ParseError once before propagation.
Check
Ask AI about this kata
Report an error
previous kata
When is try? the most accurate API choice?
Quiz
next kata
What does this program print?
Predict the output
A new version is available
Reload