Changeset 1612 for trunk/packages/invirt-base/python/invirt
- Timestamp:
- Nov 11, 2008, 3:50:12 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/invirt-base/python/invirt/common.py
r1330 r1612 38 38 39 39 # 40 # Exceptions. 41 # 42 43 class InvalidInput(Exception): 44 """Exception for user-provided input is invalid but maybe in good faith. 45 46 This would include setting memory to negative (which might be a 47 typo) but not setting an invalid boot CD (which requires bypassing 48 the select box). 49 """ 50 def __init__(self, err_field, err_value, expl=None): 51 MyException.__init__(self, expl) 52 self.err_field = err_field 53 self.err_value = err_value 54 55 class CodeError(Exception): 56 """Exception for internal errors or bad faith input.""" 57 pass 58 59 # 40 60 # Tests. 41 61 #
Note: See TracChangeset
for help on using the changeset viewer.