MCPcopy Create free account
hub / github.com/NaturalIntelligence/fast-xml-parser / getErrorObject

Function getErrorObject

src/validator.js:390–399  ·  view source on GitHub ↗
(code, message, lineNumber)

Source from the content-addressed store, hash-verified

388}
389
390function getErrorObject(code, message, lineNumber) {
391 return {
392 err: {
393 code: code,
394 msg: message,
395 line: lineNumber.line || lineNumber,
396 col: lineNumber.col,
397 },
398 };
399}
400
401function validateAttrName(attrName) {
402 return isName(attrName);

Callers 3

validateFunction · 0.85
readPIFunction · 0.85
validateAttributeStringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected