Docstring wordings, refactored /r/me handling, updated README.

This commit is contained in:
Michael Lazar
2015-04-05 17:11:25 -07:00
parent cd6047b5a9
commit 9ee21fe1ce
9 changed files with 155 additions and 145 deletions

View File

@@ -1,23 +1,31 @@
class SubmissionError(Exception):
"""Submission could not be loaded"""
class EscapeInterrupt(Exception):
"Signal that the ESC key has been pressed"
class RTVError(Exception):
"Base RTV error class"
class AccountError(RTVError):
"Could not access user account"
class SubmissionError(RTVError):
"Submission could not be loaded"
def __init__(self, url):
self.url = url
class SubredditError(Exception):
"""Subreddit could not be reached"""
class SubredditError(RTVError):
"Subreddit could not be reached"
def __init__(self, name):
self.name = name
class ProgramError(Exception):
"""Problem executing an external program"""
class ProgramError(RTVError):
"Problem executing an external program"
def __init__(self, name):
self.name = name
class EscapeInterrupt(Exception):
"""Signal that the ESC key has been pressed"""