exception_templates 0.3.1 copy "exception_templates: ^0.3.1" to clipboard
exception_templates: ^0.3.1 copied to clipboard

Dart exception and error classes with generic type. Enables throwing, catching, and filtering custom exceptions based on their type argument.

0.3.1 #

  • Applied lints.
  • Updated dev dependencies.
  • Amended README.md.

0.3.0 #

  • Applied lints, updated message formatter toColorString.
  • Min. SDK version is now 3.0.0.
  • Updated list of Dart reserved words.

0.2.4 #

  • Amended docs.

0.2.3 #

  • Changed inheritance structure. ErrorOf<T> and ErrorOfType<T> now extend Error, and ExceptionOf<T> and ExceptionOfType<T> now implement Exception.
  • Amended examples and docs.
  • Added tests.

0.2.2 #

  • Amended docs and analysis options.

0.2.1 #

  • Migrated CI to github.

0.2.0 #

  • Switched back to default test suite.

0.2.0-nullsafety #

  • Removed references to option --enable-experiment=non-nullable.

0.1.3-nullsafety #

  • Updated dependencies.

0.1.2-nullsafety #

Amended README.md.

0.1.1-nullsafety #

  • Min. Dart SDK version is now 2.10.0.

0.1.0-nullsafety #

Enabled null-safety. Testing now uses minimal_test.

0.0.6 #

Added dev_dependency on package pedantic. Applied linter suggestions.

0.0.5 #

Amended example\README.md. Added link to example.dart.

0.0.4 #

Added utils/validators.dart containing methods for checking if an identifier is valid (does not clash with a Dart keyword, does not start with a number).

0.0.3 #

Amended example.

0.0.2 #

Amended docs.

0.0.1 #

Initial version of the library.

5
likes
140
pub points
52%
popularity

Publisher

verified publishersimphotonics.com

Dart exception and error classes with generic type. Enables throwing, catching, and filtering custom exceptions based on their type argument.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

More

Packages that depend on exception_templates