mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-21 10:13:39 +00:00
26 lines
519 B
Python
26 lines
519 B
Python
|
# Copyright: 2013 Paul Traylor
|
||
|
# These sources are released under the terms of the MIT license: see LICENSE
|
||
|
|
||
|
class BaseError(Exception):
|
||
|
pass
|
||
|
|
||
|
|
||
|
class ParseError(BaseError):
|
||
|
errorcode = 500
|
||
|
errordesc = 'Error parsing the message'
|
||
|
|
||
|
|
||
|
class AuthError(BaseError):
|
||
|
errorcode = 400
|
||
|
errordesc = 'Error with authorization'
|
||
|
|
||
|
|
||
|
class UnsupportedError(BaseError):
|
||
|
errorcode = 500
|
||
|
errordesc = 'Currently unsupported by gntp.py'
|
||
|
|
||
|
|
||
|
class NetworkError(BaseError):
|
||
|
errorcode = 500
|
||
|
errordesc = "Error connecting to growl server"
|