Trees | Indices | Help |
|
---|
|
1 ############################################################################# 2 # 3 # gmExceptions - classes for exceptions gnumed modules may throw 4 # --------------------------------------------------------------------------- 5 # 6 # @author: Dr. Horst Herb 7 # @copyright: author 8 # @license: GPL (details at http://www.gnu.org) 9 # @dependencies: nil 10 # @change log: 11 # 07.02.2002 hherb first draft, untested 12 # 13 # @TODO: Almost everything 14 ############################################################################ 15 22 23 31 39 40 41 48 4951 #raised whenever the database backend connection fails60 61 #------------------------------------------------------------ 62 # constructor errors53 if errmsg is not None: 54 self.errmsg=errmsg 55 else: 56 self.errmsg="Attempt to call a pure virtual function!"5764 """Raised when a constructor fails."""72 73 # business DB-object exceptions66 if errmsg is None: 67 self.errmsg = "%s.__init__() failed" % self.__class__.__name__ 68 else: 69 self.errmsg = errmsg75 """Raised when a business db-object can not be found."""83 84 # access errors77 if errmsg is None: 78 self.errmsg = "no such business DB-object found" 79 else: 80 self.errmsg = errmsg86 """Raised when a clinical item attribute can not be found."""9488 if errmsg is None: 89 self.errmsg = "no such business DB-object attribute found" 90 else: 91 self.errmsg = errmsg96 """Raised when a clinical item attribute is not settable."""104 105 #------------------------------------------------------------ 117 118 #===================================================================== 119 # $Log: gmExceptions.py,v $ 120 # Revision 1.9 2007/05/14 10:32:07 ncq 121 # - add exception DatabaseObjectInUseError 122 # 123 # Revision 1.8 2006/11/24 09:51:00 ncq 124 # - don't blindly str() self.errmsg as this may not actually be possible (easily, with encodings) 125 # 126 # Revision 1.7 2006/10/10 07:27:34 ncq 127 # - no more ClinItem exceptions 128 # 129 # Revision 1.6 2004/10/11 19:07:36 ncq 130 # - add exceptions for business db class 131 # 132 # Revision 1.5 2004/06/02 12:51:45 ncq 133 # - add exceptions tailored to cClinItem __set/getitem__() 134 # errors as per Syan's suggestion 135 # 136 # Revision 1.4 2004/05/08 17:31:31 ncq 137 # - add NoSuchClinItemError 138 # 139 # Revision 1.3 2004/03/27 04:37:01 ihaywood 140 # lnk_person2address now lnk_person_org_address 141 # sundry bugfixes 142 # 143 # Revision 1.2 2004/03/10 00:14:04 ncq 144 # - fix imports 145 # 146 # Revision 1.1 2004/02/25 09:30:13 ncq 147 # - moved here from python-common 148 # 14998 if errmsg is None: 99 self.errmsg = "business DB-object attribute not settable" 100 else: 101 self.errmsg = errmsg
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Feb 9 04:01:34 2010 | http://epydoc.sourceforge.net |