Added error handling for editor.

This commit is contained in:
Michael Lazar
2015-03-29 18:06:47 -07:00
parent ce47bafe28
commit ca43eac3fc
3 changed files with 15 additions and 2 deletions

View File

@@ -8,5 +8,10 @@ class SubredditError(Exception):
def __init__(self, name):
self.name = name
class ProgramError(Exception):
"Problem executing an external program"
def __init__(self, name):
self.name = name
class EscapeInterrupt(Exception):
"Signal that the ESC key has been pressed"