Error handling.
This commit is contained in:
12
rtv/errors.py
Normal file
12
rtv/errors.py
Normal file
@@ -0,0 +1,12 @@
|
||||
class EscapePressed(Exception):
|
||||
pass
|
||||
|
||||
class SubmissionURLError(Exception):
|
||||
|
||||
def __init__(self, url):
|
||||
self.url = url
|
||||
|
||||
class SubredditNameError(Exception):
|
||||
|
||||
def __init__(self, name):
|
||||
self.name = name
|
||||
Reference in New Issue
Block a user