public
Description: Simple to use TVDB (thetvdb.com) API in Python, and automatic TV episode namer
Homepage: http://dbr.lighthouseapp.com/projects/13342-tvdb_api/tickets
Clone URL: git://github.com/dbr/tvdb_api.git
tvdb_api / tvdb_exceptions.py
100644 49 lines (39 sloc) 1.168 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/usr/bin/env python
#encoding:utf-8
#author:dbr/Ben
#project:tvdb_api
#repository:http://github.com/dbr/tvdb_api
#license:Creative Commons GNU GPL v2
# (http://creativecommons.org/licenses/GPL/2.0/)
 
"""Custom exceptions used or raised by tvdb_api
"""
 
__author__ = "dbr/Ben"
__version__ = "1.2.2"
 
__all__ = ["tvdb_error", "tvdb_userabort", "tvdb_shownotfound",
"tvdb_seasonnotfound", "tvdb_episodenotfound", "tvdb_attributenotfound"]
 
class tvdb_error(Exception):
    """An error with www.thetvdb.com (Cannot connect, for example)
"""
    pass
 
class tvdb_userabort(Exception):
    """User aborted the interactive selection (via
the q command, ^c etc)
"""
    pass
 
class tvdb_shownotfound(Exception):
    """Show cannot be found on www.thetvdb.com (non-existant show)
"""
    pass
 
class tvdb_seasonnotfound(Exception):
    """Season cannot be found on www.thetvdb.com
"""
    pass
 
class tvdb_episodenotfound(Exception):
    """Episode cannot be found on www.thetvdb.com
"""
    pass
 
class tvdb_attributenotfound(Exception):
    """Raised if an episode does not have the requested
attribute (such as a episode name)
"""
    pass