Improve Error Handling with Snafu and Eliminate panic! Calls #190
Labels
Interface: Rust
Kind: Improvement
This is a proposed improvement
Priority: normal
Status: Design
Issue at Design phase of the quality assurance process
Milestone
High level description
Nyx Space currently handles errors through a large enum, making the process of adding new variants complex and less clear. The error handling could greatly benefit from improved organization, specificity, and scalability. Using the snafu library can provide these benefits, as it allows us to create context-specific errors and provides backtraces. Transitioning to snafu would enhance our error handling capabilities, making it easier to add, manage, and debug errors.
Requirements
Test plans
Design
The design section would typically include a MermaidJS diagram, but since the changes here are primarily concerned with improving code quality and don't involve new components, relationships, or data flow, it's not straightforward to represent these changes in a diagram. The changes mostly consist of internal refactoring and don't impact the architecture at a level that could be usefully visualized with MermaidJS.
The text was updated successfully, but these errors were encountered: