Skip to main content
Version: v0.0.9

Interface: NcpdpScriptWarning

A non-fatal SCRIPT parse warning: a stable code, its registry message, and the XPath-style location where it was raised.

What is and is not guaranteed. message is always the SCRIPT_WARNING_MESSAGES entry for code, byte for byte, so no part of a parsed document can appear in it. position.path is assembled only from element names this parser recognizes, so a sender-chosen name never reaches it either. A warning is therefore safe to log whole. That is a property of the construction, not a promise about the document.

Properties

code

readonly code: ScriptWarningCode

Stable, machine-readable warning code.


message

readonly message: string

The SCRIPT_WARNING_MESSAGES entry for code, verbatim.


position

readonly position: ScriptPosition

XPath-style location where the condition was detected.