ExceptionBase
模块: oapy._oa._common
导入: from oapy._oa import _common
概览
ExceptionBase 在 oapy 中可用,可通过 _common 模块访问。
本页汇总 ExceptionBase 当前在 oapy 中可用的 Python 接口。
详细说明
This is a base class that clients can use to derive their own IException based exception classes。
构造函数
_common.ExceptionBase(idIn, msgIn)
obj = _common.ExceptionBase(idIn, msgIn)
方法总览
| 状态 | Python 调用 |
|---|---|
| ✅ | obj.getMsgId() |
| ✅ | obj.getMsg() |
方法说明
obj.getMsgId()
绑定状态: 已绑定
Python 调用: obj.getMsgId()
This function implements the IException::getMsgId() function。 It returns the value that was passed in to the idIn parameter of the constructor。 实现 IException。
Python 示例
from oapy._oa import _common
# assume obj is a ExceptionBase
obj.getMsgId()
obj.getMsg()
绑定状态: 已绑定
Python 调用: obj.getMsg()
This function implements the IException::getMsg() function。 It return a pointer to a copy of the c-style string that was passed into the msgIn parameter of the constructor。 实现 IException。
Python 示例
from oapy._oa import _common
# assume obj is a ExceptionBase
obj.getMsg()