home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2004 July
/
CMCD0704.ISO
/
Software
/
Shareware
/
Comunicatii
/
jyte
/
jyte.exe
/
error.py
< prev
next >
Wrap
Text File
|
1999-09-02
|
551b
|
19 lines
"""Exception instance for AXScript servers.
This module implements an exception instance that is raised by the core
server scripting support.
When a script error occurs, it wraps the COM object that describes the
exception in a Python instance, which can then be raised and caught.
"""
class Exception:
def __init__(self, activeScriptError):
self.activeScriptError = activeScriptError
def __getattr__(self, attr):
try:
return getattr(self.activeScriptError, attr)
except AttributeError:
raise AttributeError, attr