Skip to content

feat: added error handling severity levels & named errors#11

Merged
desertthunder merged 3 commits intomainfrom
ft/error-handling
Nov 23, 2025
Merged

feat: added error handling severity levels & named errors#11
desertthunder merged 3 commits intomainfrom
ft/error-handling

Conversation

@desertthunder
Copy link
Contributor

Details

VoltX now uses named error classes for each error source:

  • EvaluatorError - Expression evaluation failures
  • BindingError - Directive setup or execution failures
  • EffectError - Effect callback failures
  • HttpError - Network or HTTP directive errors
  • PluginError - Plugin initialization or execution failures
  • LifecycleError - Lifecycle hook failures
  • ChargeError - Initialization and mounting errors
  • UserError - User-reported errors

Additional Changes

  • add rich metadata (context) to errors
  • three severity levels control console output and execution flow
  • added comprehensive error handling guide to docs

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Nov 23, 2025

Deploying voltx-demo with  Cloudflare Pages  Cloudflare Pages

Latest commit: e1b0c54
Status: ✅  Deploy successful!
Preview URL: https://7f69c9bc.voltx-demo.pages.dev
Branch Preview URL: https://ft-error-handling.voltx-demo.pages.dev

View logs

@desertthunder desertthunder enabled auto-merge (squash) November 23, 2025 03:30
@desertthunder desertthunder merged commit 0402c20 into main Nov 23, 2025
3 checks passed
@desertthunder desertthunder deleted the ft/error-handling branch November 23, 2025 03:30
@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants