The code
read-only property of the XPathException
interface returns a short
that contains one of the error code constants.
Syntax
var exceptionCode = exception.code;
Value
A short
number representing the error code.
Specifications
Specification | Status | Comment |
---|---|---|
Document Object Model (DOM) Level 3 XPath Specification The definition of 'XPathException' in that specification. |
Recommendation | Initial definition |
Browser compatibility
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
No compatibility data found. Please contribute data for "api.XPathException.code" (depth: 1) to the MDN compatibility data repository.