Package acis_xmlrpc :: Module exceptions
[hide private]
[frames] | no frames]

Source Code for Module acis_xmlrpc.exceptions

 1  """ 
 2  Exceptions 
 3  @since: May 2007 
 4  @author: Grant Kelly 
 5  """ 
 6   
7 -class ACISException(Exception):
8 """ 9 Base ACIS XML-RPC Exception class 10 """
11 - def __init__(self, msg):
12 self.msg = msg
13
14 -class ReturnHelpText(ACISException):
15 - def __init__(self):
16 pass
17
18 -class OptionRequired(ACISException):
19 """ 20 Raised when calling a method without a required option. 21 """
22 - def __str__(self):
23 return "Option required: " + repr(self.msg)
24
25 -class DateError(ACISException):
26 """ 27 Raised when there is a problem with dates. 28 """
29 - def __str__(self):
30 return "Date Error: " + repr(self.msg)
31
32 -class NotYetImplemented(ACISException):
33 """ 34 Raised when a feature/method is not yet implemented. 35 """
36 - def __str__(self):
37 return "Not Implemented: " + repr(self.msg)
38