Changeset 20178 in vbox
- Timestamp:
- Jun 2, 2009 7:56:59 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/python/__init__.py
r12752 r20178 52 52 assert int(errno) == errno, "The errno param must be an integer" 53 53 self.errno = errno 54 self.m essage= message54 self.msg = message 55 55 exceptions.Exception.__init__(self, errno) 56 # we do this, as parent's constructor can override message57 self.message = message58 56 def __str__(self): 59 57 if not hr_map: … … 62 60 if type(val)==type(0): 63 61 hr_map[val] = name 64 message = self.m essage62 message = self.msg 65 63 if message is None: 66 64 message = hr_map.get(self.errno)
Note:
See TracChangeset
for help on using the changeset viewer.