blob: 168c5267528a2b9919a22cbfb130d7d6e8a5bcd9 (
plain) (
blame)
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
|
--- happydoclib/CommandLineApp.py.orig
+++ happydoclib/CommandLineApp.py
@@ -102,10 +102,21 @@
#
# Exception names
#
- ReservedOptionName = 'Reserved option name'
- HelpRequested='Help requested'
- InvalidOptionValue='Invalid value for option'
- InvalidArgument='Invalid argument to program'
+ class ReservedOptionName(ValueError):
+ 'Reserved option name'
+ pass
+
+ class HelpRequested(ValueError):
+ 'Help requested'
+ pass
+
+ class InvalidOptionValue(ValueError):
+ 'Invalid value for option'
+ pass
+
+ class InvalidArgument(ValueError):
+ 'Invalid argument to program'
+ pass
#
# Globally useful configuration stuff.
|