XPathException - Web APIs 编辑
In the DOM XPath API the XPathException
interface represents exception conditions that can be encountered while performing XPath operations.
Properties
XPathException.code
Read only- Returns a
short
that contains one of the error code constants.
Constants
Constant | Value | Description |
---|---|---|
INVALID_EXPRESSION_ERR | 51 | If the expression has a syntax error or otherwise is not a legal expression according to the rules of the specific XPathEvaluator or contains specialized extension functions or variables not supported by this implementation. |
TYPE_ERR | 52 | If the expression cannot be converted to return the specified type. |
Specifications
Specification | Status | Comment |
---|---|---|
Document Object Model (DOM) Level 3 XPath Specification The definition of 'XPathException' in that specification. | Recommendation | Initial definition |
See also
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论