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

Generic Dart exception and error classes. Enables throwing and catching custom exceptions based on their type argument.

1.1.0 #

  • Identifier validators are now extension methods.
  • The colors and font style used to generate console output can now be customized by setting the static variables of the class ColorProfile.
  • Updated dependencies.

1.0.0 #

  • Converted classes to use primary constructor syntax.
  • Improved examples.
  • Updated docs.
  • Requires Dart ^3.13.0.

0.3.2 #

  • Updated dependencies.
  • Updated colorized toString() function.
  • Updated list of Dart keywords.

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.

9
likes
160
points
15.9k
downloads

Documentation

API reference

Publisher

verified publishersimphotonics.com

Weekly Downloads

Generic Dart exception and error classes. Enables throwing and catching custom exceptions based on their type argument.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

ansi_modifier

More

Packages that depend on exception_templates