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

Domain errors with Either, Result, and captureResult 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

With Flutter:

 $ flutter 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: ^3.0.0

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:domain_error/domain_error.dart';
1
likes
160
points
180
downloads
screenshot

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

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

Repository (GitHub)
View/report issues

Topics

#error-handling #domain #exceptions

License

MIT (license)

Dependencies

collection, equatable, meta

More

Packages that depend on domain_error