8000 Handle project data loading exceptions by SuperJMN · Pull Request #400 · block-core/angor · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Handle project data loading exceptions #400

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

Merged
merged 1 commit into from
May 27, 2025

Conversation

SuperJMN
Copy link
Contributor
@SuperJMN SuperJMN commented May 27, 2025

Currently, if the indexer fails the application crashes. This handles any possible exception and makes project retrieval fail-proof.

  • Switch Latest methods in repositories, services, and view models to return Result<T> for error propagation and better handling.
  • Replace IList with IEnumerable in project-related properties and methods for enhanced flexibility.
  • Update command and property behaviors in BrowseSectionViewModel to handle successes and errors.
  • Adjust unit tests to validate Result<T> success and values.

- Switch `Latest` methods in repositories, services, and view models to return `Result<T>` for error propagation and better handling.
- Replace `IList` with `IEnumerable` in project-related properties and methods for enhanced flexibility.
- Update command and property behaviors in `BrowseSectionViewModel` to handle successes and errors.
- Adjust unit tests to validate `Result<T>` success and values.
@SuperJMN SuperJMN changed the title Handle project data loading with Result<T> types Handle project data loading exceptions May 27, 2025
@dangershony dangershony merged commit f698ba4 into block-core:main May 27, 2025
3 checks 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.

2 participants
0