@federicocarboni/saxe
    Preparing search index...

    Class SaxError

    A parsing error in an XML document or entity. The specific violation or error is identified by name.

    Hierarchy

    • Error
      • SaxError
    Index

    Constructors

    • Parameters

      • name:
            | "LimitExceeded"
            | "InvalidXmlDecl"
            | "InvalidDoctypeDecl"
            | "InvalidInternalSubset"
            | "InvalidComment"
            | "InvalidPi"
            | "ReservedPi"
            | "InvalidEntityRef"
            | "RecursiveEntity"
            | "UndeclaredEntity"
            | "UnparsedEntity"
            | "ExternalEntity"
            | "InvalidCharRef"
            | "InvalidChar"
            | "InvalidCDataEnd"
            | "InvalidContent"
            | "InvalidStartTag"
            | "InvalidEndTag"
            | "InvalidAttributeValue"
            | "AttributeRedefined"
            | "TagNameMismatch"
            | "UnexpectedEof"
            | "InvalidQName"
            | "InvalidNcName"
            | "UndeclaredPrefix"
            | "PrefixUndeclaring"
            | "ReservedPrefix"
            | "ReservedNamespace"
      • options: SaxErrorOptions | undefined = undefined

      Returns SaxError

    Properties

    attribute?: string

    Name of the attribute that caused the error, if any.

    cause?: unknown
    element?: string

    Name of the element that caused the error, if any.

    entity?: string

    Name of the entity that caused the error, if any.

    message: string
    name:
        | "LimitExceeded"
        | "InvalidXmlDecl"
        | "InvalidDoctypeDecl"
        | "InvalidInternalSubset"
        | "InvalidComment"
        | "InvalidPi"
        | "ReservedPi"
        | "InvalidEntityRef"
        | "RecursiveEntity"
        | "UndeclaredEntity"
        | "UnparsedEntity"
        | "ExternalEntity"
        | "InvalidCharRef"
        | "InvalidChar"
        | "InvalidCDataEnd"
        | "InvalidContent"
        | "InvalidStartTag"
        | "InvalidEndTag"
        | "InvalidAttributeValue"
        | "AttributeRedefined"
        | "TagNameMismatch"
        | "UnexpectedEof"
        | "InvalidQName"
        | "InvalidNcName"
        | "UndeclaredPrefix"
        | "PrefixUndeclaring"
        | "ReservedPrefix"
        | "ReservedNamespace"

    A string indicating the specific violation or error.

    stack?: string