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

Add fine grained error handling #1

Merged
merged 6 commits into from
Oct 9, 2023
Merged

Add fine grained error handling #1

merged 6 commits into from
Oct 9, 2023

Conversation

mcphailtom
Copy link
Owner

@mcphailtom mcphailtom commented Oct 9, 2023

This change adds a custom error types and ErrorStateXXX constants to the package. Consumers can respond to them as macro errors or Unwrap with errors.As to interrogate the details.

Most Errors will cause termination but ErrorStateFileRemoved will leave the File Watch active and the file will be reopened if it is recreated. There is room to make this more configurable and optional at a later time but at the moment it solves a problem I need solved simply.

@mcphailtom mcphailtom merged commit 931cfc3 into main Oct 9, 2023
1 check passed
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.

1 participant