Major refactor, package cleanup. Untested.
This commit is contained in:
12
rtv/exceptions.py
Normal file
12
rtv/exceptions.py
Normal file
@@ -0,0 +1,12 @@
|
||||
class SubmissionError(Exception):
|
||||
"Submission could not be loaded"
|
||||
def __init__(self, url):
|
||||
self.url = url
|
||||
|
||||
class SubredditError(Exception):
|
||||
"Subreddit could not be reached"
|
||||
def __init__(self, name):
|
||||
self.name = name
|
||||
|
||||
class EscapeInterrupt(Exception):
|
||||
"Signal that the ESC key has been pressed"
|
||||
Reference in New Issue
Block a user