Skip to content

We need some way to know what Exceptions are thrown by a function. It's like the type safety doesn't apply to exceptions, it drives me mad. Or ditch try/catch entirely, I don't know. I use Either in my code, but I can't force third party packages or even the official Flutter SDK to use it. There has to be a better solution #56622

Closed
@1999ali1999

Description

@1999ali1999

Commit(s) to merge

unknown

Target

unknown

Prepared changelist for beta/stable

unknown

Issue Description

We need some way to know what Exceptions are thrown by a function. It's like the type safety doesn't apply to exceptions, it drives me mad.

Or ditch try/catch entirely, I don't know. I use Either in my code, but I can't force third party packages or even the official Flutter SDK to use it.

There has to be a better solution)

What is the fix

unknown

Why cherry-pick

unknown

Risk

unknown

Issue link(s)

Not found

Extra Info

Not found

Metadata

Metadata

Labels

area-languageDart language related items (some items might be better tracked at github.com/dart-lang/language).cherry-pick-reviewIssue that need cherry pick triage to approvetriage-automationSee https://github.com/dart-lang/ecosystem/tree/main/pkgs/sdk_triage_bot.type-enhancementA request for a change that isn't a bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions