checked_exceptions 1.0.1 copy "checked_exceptions: ^1.0.1" to clipboard
checked_exceptions: ^1.0.1 copied to clipboard

Checked exceptions for Dart, as an analyzer plugin. A call to a @Throws-annotated function must be caught or propagated, and a catch clause must not silently swallow it.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add checked_exceptions

With Flutter:

 $ flutter pub add checked_exceptions

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  checked_exceptions: ^1.0.1

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:checked_exceptions/checked_exceptions.dart';
0
likes
160
points
119
downloads

Documentation

API reference

Publisher

verified publisherarxdeus.dev

Weekly Downloads

Checked exceptions for Dart, as an analyzer plugin. A call to a @Throws-annotated function must be caught or propagated, and a catch clause must not silently swallow it.

Repository (GitHub)
View/report issues
Contributing

Topics

#analyzer-plugin #lints #static-analysis #exceptions

Funding

Consider supporting this project:

ko-fi.com

License

MIT (license)

Dependencies

analysis_server_plugin, analyzer, analyzer_plugin, analyzer_plugin_toolkit

More

Packages that depend on checked_exceptions