Page URL
https://dart.dev/learn/tutorial/error-handling
Page source
https://github.com/dart-lang/site-www/blob/main/src/content/learn/tutorial/error-handling.md
Describe the problem
The content teaches what it should but the difference between what an error and exception is not taught. The distinction is listed as a learning goal in the "What you'll accomplish" section and then referenced in the Review as if it had been covered, but the body of the page (Tasks 1–5) never explicitly explains what an Error is or how it differs from an Exception. The only relevant content is in Task 3's cli.dart code snippet, where the onError callback silently treats Error and Exception differently without any accompanying explanation. It appears to be a gap in the tutorial.
Expected fix
No response
Additional context
No response
I would like to fix this problem.
Page URL
https://dart.dev/learn/tutorial/error-handling
Page source
https://github.com/dart-lang/site-www/blob/main/src/content/learn/tutorial/error-handling.md
Describe the problem
The content teaches what it should but the difference between what an error and exception is not taught. The distinction is listed as a learning goal in the "What you'll accomplish" section and then referenced in the Review as if it had been covered, but the body of the page (Tasks 1–5) never explicitly explains what an Error is or how it differs from an Exception. The only relevant content is in Task 3's
cli.dartcode snippet, where theonErrorcallback silently treatsErrorandExceptiondifferently without any accompanying explanation. It appears to be a gap in the tutorial.Expected fix
No response
Additional context
No response
I would like to fix this problem.