oaException
模块: oapy._oa._base
导入: from oapy._oa import _base
概览
oaException 在 oapy 中可用,可通过 _base 模块访问。
本页汇总 oaException 当前在 oapy 中可用的 Python 接口。
详细说明
The oaException class implements various types of exception objects the OpenAccess system can throw。 The symbols for the possible message IDs are defined in an enum for each package。 The enums are: oaBaseMsgIds oaDDMsgIds oaTechMsgIds oaDesignMsgIds Applications should use the oaException class to catch all the exceptions thrown by the database。
方法总览
| 状态 | Python 调用 |
|---|---|
| ✅ | obj.getMsgId() |
| ✅ | obj.getMsg() |
| ✅ | _base.oaException.getLastOSError() |
方法说明
obj.getMsgId()
绑定状态: 已绑定
Python 调用: obj.getMsgId()
This function returns an integer for the current type of exception。
Python 示例
from oapy._oa import _base
# assume obj is a oaException
obj.getMsgId()
obj.getMsg()
绑定状态: 已绑定
Python 调用: obj.getMsg()
This function returns the message for the current exception, which can contain object names or other data for this specific occurrence of the exception。
Python 示例
from oapy._oa import _base
# assume obj is a oaException
obj.getMsg()
_base.oaException.getLastOSError()
绑定状态: 已绑定
Python 调用: _base.oaException.getLastOSError()
This function returns the error code of the last error reported by the operating system。
Python 示例
from oapy._oa import _base
_base.oaException.getLastOSError()