oaPlugInError
模块: oapy._oa._common
导入: from oapy._oa import _common
概览
oaPlugInError 在 oapy 中可用,可通过 _common 模块访问。
本页汇总 oaPlugInError 当前在 oapy 中可用的 Python 接口。
构造函数
_common.oaPlugInError(statusIn, msgIn=NULL)
obj = _common.oaPlugInError(statusIn, msgIn=NULL)
方法总览
| 状态 | Python 调用 |
|---|---|
| ✅ | obj.getStatus() |
| ✅ | obj.getMsgId() |
| ✅ | obj.getMsg() |
方法说明
obj.getStatus()
绑定状态: 已绑定
Python 调用: obj.getStatus()
This function returns one of the values of IBase::Status that describes the problem that generated this exception。 实现 IPlugInException。
Python 示例
from oapy._oa import _common
# assume obj is a oaPlugInError
obj.getStatus()
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。 实现 IException。
Python 示例
from oapy._oa import _common
# assume obj is a oaPlugInError
obj.getMsgId()
obj.getMsg()
绑定状态: 已绑定
Python 调用: obj.getMsg()
This function returns a string that represents the error message for the exception being thrown。 实现 IException。
Python 示例
from oapy._oa import _common
# assume obj is a oaPlugInError
obj.getMsg()