Skip to content

fix: wrap string throws in Exception classes to comply with Dart linting rules - #3462

Open
Aniketkhote wants to merge 5 commits into
jonataslaw:masterfrom
Aniketkhote:master
Open

fix: wrap string throws in Exception classes to comply with Dart linting rules#3462
Aniketkhote wants to merge 5 commits into
jonataslaw:masterfrom
Aniketkhote:master

Conversation

@Aniketkhote

Copy link
Copy Markdown
Contributor

fix: wrap string throws in Exception classes to comply with Dart linting rules

  • Wrap all string throws in Exception() across multiple files
  • Make ObxError extend Exception instead of plain class
  • Update test expectations from String to Exception
  • Fix test logic in Get.delete test by uncommenting Get.put line

This fixes all linting warnings about throwing instances that don't extend Exception or Error.

…ing rules

- Wrap all string throws in Exception() across multiple files
- Make ObxError extend Exception instead of plain class
- Update test expectations from String to Exception
- Fix test logic in Get.delete test by uncommenting Get.put line

This fixes all linting warnings about throwing instances that don't
extend Exception or Error.
- Extract ObxError class to lib/get_common/obx_error.dart
- Make ObxError implement Exception to satisfy Dart linting rules
- Remove commented-out dead code in list_notifier.dart
- Add null safety assertions to addListenerId() and disposeId()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant