Remove some generic exceptions

This commit is contained in:
Odd Stråbø 2020-07-31 23:45:54 +02:00
parent bf372791ab
commit 803081f65a
12 changed files with 43 additions and 33 deletions

View file

@ -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