Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: improve error handling #367

Merged
merged 6 commits into from
Feb 26, 2025
Merged

feat: improve error handling #367

merged 6 commits into from
Feb 26, 2025

Conversation

rmarescu
Copy link
Member

@rmarescu rmarescu commented Feb 26, 2025

What

  • Add ShortestError base class with specialized error types
  • Implement asShortestError() utility for error conversion
  • Standardize error messages and formatting
  • Use ConfigError for invalid config for Log

Why

  • Improves error reporting with consistent formatting
  • Makes error handling more predictable
  • Provides clearer error types for debugging
  • Prevent catching non-Shortest errors

@rmarescu rmarescu self-assigned this Feb 26, 2025
Copy link

vercel bot commented Feb 26, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
shortest ⬜️ Ignored (Inspect) Visit Preview Feb 26, 2025 6:10am

@rmarescu rmarescu marked this pull request as ready for review February 26, 2025 05:12
@rmarescu rmarescu merged commit 1dba67e into main Feb 26, 2025
6 checks passed
@rmarescu rmarescu deleted the rmarescu/shortest-error branch February 26, 2025 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant