mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-13 21:56:11 +00:00
26 lines
684 B
Python
26 lines
684 B
Python
# -*- coding: utf-8 -*-
|
|
from __future__ import division, absolute_import, print_function, unicode_literals
|
|
|
|
#################################################################################################
|
|
|
|
|
|
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):
|
|
"""
|
|
Replacing generic `Exception`
|
|
|
|
TODO: Investigate the usage of this to see if it can be done better.
|
|
"""
|
|
pass
|