error_or 0.5.0 copy "error_or: ^0.5.0" to clipboard
error_or: ^0.5.0 copied to clipboard

Return a result ErrorOr with either a value T or an error Object.

0.5.0 7 jul 2025 #

  • update SDK constraints and packages
  • add separate ErrorOrMixin

0.4.0 6 dec 2023 #

  • update sdk env and dev deps

0.3.0+1 15 apr 2022 #

  • minor change to README

0.3.0 12 apr 2022 #

  • rename tryIt -> wrap

0.2.0 12 apr 2022 #

  • rename wrap -> tryIt

0.1.0 12 apr 2022 #

  • add wrap function to auto try/catch and erroneous function

0.0.9+1 7 apr 2022 #

  • simplify DOCS

0.0.9 6 apr 2022 #

  • use initializing parameters for ErrorOr subclasses

0.0.8+2 5 apr 2022 #

  • improve DOCS

0.0.8+1 5 apr 2022 #

  • improve README

0.0.8 4 apr 2022 #

  • add back ErrorOrTypeError

0.0.7 4 apr 2022 #

  • cast without check and remove custom TypeError

0.0.6+1 4 apr 2022 #

  • improve class DOCS

0.0.6 4 apr 2022 #

  • refactor error type ErrorOrTypeError and inherit from TypeError

0.0.5 4 apr 2022 #

  • rename factory constructors to just 'value' and 'error'

0.0.4+1 4 apr 2022 #

  • improve README

0.0.4 4 apr 2022 #

  • use ErrorOr as mixin and remove private constructor

0.0.3 3 apr 2022 #

  • rename _Success and _Failure -> _ValueWrapper and _ErrorWrapper

0.0.2+2 3 apr 2022 #

  • improve class DOCS

0.0.2+1 3 apr 2022 #

  • improve README

0.0.2 3 apr 2022 #

  • use hidden success / failure pattern for non-null values

0.0.1 3 apr 2022 #

  • initial release
5
likes
160
points
75
downloads

Publisher

verified publisherapptakk.com

Weekly Downloads

Return a result ErrorOr with either a value T or an error Object.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on error_or