domain_error 2.0.0 copy "domain_error: ^2.0.0" to clipboard
domain_error: ^2.0.0 copied to clipboard

Domain errors with Either, Result, and executeSafely for expected errors in Dart applications.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add domain_error

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

dependencies:
  domain_error: ^2.0.0

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

Import it

Now in your Dart code, you can use:

import 'package:domain_error/domain_error.dart';
1
likes
0
points
285
downloads

Publisher

unverified uploader

Weekly Downloads

Domain errors with Either, Result, and executeSafely for expected errors in Dart applications.

Repository (GitHub)
View/report issues

Topics

#error-handling #domain #exceptions

License

unknown (license)

Dependencies

collection, equatable, meta

More

Packages that depend on domain_error