IException
模块: oapy._oa._common
导入: from oapy._oa import _common
概览
IException 在 oapy 中可用,可通过 _common 模块访问。
本页汇总 IException 当前在 oapy 中可用的 Python 接口。
详细说明
This is an abstract class that can be used by the plug-in implementation to pass an exception back to the application side。
方法总览
| 状态 | Python 调用 |
|---|---|
| ✅ | obj.getMsgId() |
| ✅ | obj.getMsg() |
方法说明
obj.getMsgId()
绑定状态: 已绑定
Python 调用: obj.getMsgId()
This function returns the id of the exception message。 Note that this id can have different meanings dependent on the package that the plug-in that threw the exception belongs to。 由 ExceptionBase 和 oaPlugInError 实现。
Python 示例
from oapy._oa import _common
# assume obj is a IException
obj.getMsgId()
obj.getMsg()
绑定状态: 已绑定
Python 调用: obj.getMsg()
This function returns a string that represents the error message for the exception being thrown。 由 ExceptionBase 和 oaPlugInError 实现。
Python 示例
from oapy._oa import _common
# assume obj is a IException
obj.getMsg()