error.py 470 B

123456789101112131415
  1. """Exception instance for AXScript servers.
  2. This module implements an exception instance that is raised by the core
  3. server scripting support.
  4. When a script error occurs, it wraps the COM object that describes the
  5. exception in a Python instance, which can then be raised and caught.
  6. """
  7. class Exception:
  8. def __init__(self, activeScriptError):
  9. self.activeScriptError = activeScriptError
  10. def __getattr__(self, attr):
  11. return getattr(self.activeScriptError, attr)