-
Notifications
You must be signed in to change notification settings - Fork 2
/
comicvine_exceptions.py
48 lines (39 loc) · 1.28 KB
/
comicvine_exceptions.py
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
#!/usr/bin/env python
#encoding:utf-8
#author:swc/Steve
#project:comicvine_api
#repository:http://github.com/swc/comicvine_api
#license:Creative Commons GNU GPL v2
# (http://creativecommons.org/licenses/GPL/2.0/)
"""Custom exceptions used or raised by comicvine_api
Modified from http://github.com/dbr/tvdb_api
"""
__author__ = "swc/Steve"
__version__ = "1.01"
__all__ = ["comicvine_error", "comicvine_userabort", "comicvine_volumenotfound", "comicvine_issuenotfound", "comicvine_attributenotfound"]
class comicvine_exception(Exception):
"""Any exception generated by comicvine_api
"""
pass
class comicvine_error(comicvine_exception):
"""An error with www.comicvine.com (Cannot connect, for example)
"""
pass
class comicvine_userabort(comicvine_exception):
"""User aborted the interactive selection (via
the q command, ^c etc)
"""
pass
class comicvine_volumenotfound(comicvine_exception):
"""volume cannot be found on www.comicvine.com (non-existant volume)
"""
pass
class comicvine_issuenotfound(comicvine_exception):
"""Issue cannot be found on www.comicvine.com
"""
pass
class comicvine_attributenotfound(comicvine_exception):
"""Raised if an issue does not have the requested
attribute (such as a issue name)
"""
pass