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

Implement General Errors #136

Merged
merged 4 commits into from
Aug 12, 2021
Merged

Conversation

LePips
Copy link
Member

@LePips LePips commented Aug 12, 2021

What

Implements general error handling from network calls from within view models.

Why

There currently was none, as errors were handled on a case-by-case basis in some places.

Comments

This implementation is temporary as the error parsing (URL, HTTP URL, and API) calls should be handled within the JellyfinAPI at the network layer. I will work on that in the future and this work is only for us to surface errors in development. The work is repetitive and messy which I am not happy about and again, this is very very temporary. I will create all of the specific and necessary issues with the work.

While working on this, I also came across many problems with the packages that we use and how they have conflicting and redundant types (Puppy.LogLevel and JellyfinAPI.LogLevel for example). We need to clean up the dependencies so that we don't face this anymore.

@LePips LePips requested a review from acvigue as a code owner August 12, 2021 17:39
@acvigue acvigue merged commit c5d346a into jellyfin:main Aug 12, 2021
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

@LePips LePips deleted the general-error-messages branch October 19, 2021 23:40
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