mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-05-23 08:22:46 +00:00
Remove some generic exceptions
This commit is contained in:
parent
bf372791ab
commit
803081f65a
12 changed files with 43 additions and 33 deletions
|
@ -4,7 +4,19 @@ from __future__ import division, absolute_import, print_function, unicode_litera
|
|||
#################################################################################################
|
||||
|
||||
|
||||
class HTTPException(Exception):
|
||||
# Jellyfin HTTP exception
|
||||
def __init__(self, status, message):
|
||||
self.status = status
|
||||
self.message = message
|
||||
|
||||
|
||||
class LibraryException(Exception):
|
||||
# Jellyfin library sync exception
|
||||
def __init__(self, status):
|
||||
self.status = status
|
||||
|
||||
|
||||
class PathValidationException(Exception):
|
||||
# raise Exception("Failed to validate path. User stopped.")
|
||||
pass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue