Skip to main content

app_failure 1.0.1 copy "app_failure: ^1.0.1" to clipboard
app_failure: ^1.0.1 copied to clipboard

Declarative failure handling for Dart and Flutter apps with layered cause chains and processing intent.

Changelog #

1.0.1 #

  • Initial package setup.
  • Added the core AppFailure model.
  • Added AppResult<T> for explicit success and failure return flows.
  • Added support for failure cause chains.
  • Added base failure types for validation, HTTP, API, repository, and controller layers.
  • Added failure metadata for log messages, UI messages, severity, stack traces, and report behavior.
  • Added early documentation for the declarative failure-handling model.
  • Added examples for:
    • returning AppResult<T> instead of throwing
    • wrapping lower-level failures into higher-level failures
    • preserving the full failure chain
    • logging the full chain only when the failure is consumed
    • emitting failures to the UI for user-facing reactions
  • Prepared package structure for adapters, integration examples, and future processing rules.
0
likes
150
points
37
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Declarative failure handling for Dart and Flutter apps with layered cause chains and processing intent.

Repository (GitHub)
View/report issues

Topics

#error-handling #failure #clean-architecture #result #flutter

License

MIT (license)

Dependencies

meta

More

Packages that depend on app_failure