XmlParseError

class XmlParseError()

Error object that is thrown when attempting to parse XML data. This can be thrown in the case of an actual parsing error or a malformed XML file. The error object itself will provide a detailed description of the error.

Constructors


Constructors

XmlParseError.constructor(message)
Arguments:
  • message (string()) – None

Creates a new XmlParseError

Return type:XmlParseError

Properties

XmlParseError.message
Type:string
XmlParseError.name
Type:string
XmlParseError.stack
Type:string optional
XmlParseError.prepareStackTrace
Type:function optional

Optional override for formatting stack traces

See:https://v8.dev/docs/stack-trace-api#customizing-stack-traces
XmlParseError.prepareStackTrace(err, stackTraces)
Arguments:
  • err (Error()) – None
  • stackTraces ([CallSite]()) – None
Return type:

any

XmlParseError.stackTraceLimit
Type:number

Methods

static captureStackTrace

XmlParseError.captureStackTrace(targetObject[, constructorOpt])
Arguments:
  • targetObject (object()) – None
  • constructorOpt (Function()) – optional None

Create .stack property on a target object

Return type:void