Function: scriptWarning()
scriptWarning(
code,message,position):NcpdpScriptWarning
Construct a frozen NcpdpScriptWarning.
Parameters
code
The stable warning code.
message
string
PHI-free human-readable description.
position
XPath-style location of the condition.
Returns
A frozen warning.
Example
scriptWarning(
SCRIPT_WARNING_CODES.VERSION_ABSENT,
"No SCRIPT version found; parsed best-effort.",
scriptPosition("/Message/Header"),
);