jellyfin-sdk-kotlin icon indicating copy to clipboard operation
jellyfin-sdk-kotlin copied to clipboard

Add RecommendedServerIssue for connection problems

Open nielsvanvelzen opened this issue 2 years ago • 0 comments

Right now connection issues are emitted as MissingSystemInfo, with the throwable pointing to an ApiClientException with a cause containing the actual exception emitted from OkHttp.

This can be made better/easier.

I'd suggest creating a new issue type "NoConnection". It should contain the throwable and an enum explaining what went wrong with the connection: bad SSL, no internet etc.

nielsvanvelzen avatar Jan 07 '22 20:01 nielsvanvelzen