Skip to content

Gap in the goals. #7277

@adewitt76

Description

@adewitt76

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.

  • I will try and fix this problem on dart.dev.

Metadata

Metadata

Assignees

No one assigned

    Labels

    from.page-issueReported in a reader-filed concern

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions