Options
All
  • Public
  • Public/Protected
  • All
Menu

The patch could not be applied because the diff and the patched document use different character sets.

Hierarchy

Index

Constructors

constructor

Properties

Optional action

action: NodeImpl

The action that caused error

message

message: string

name

name: string

Optional stack

stack: undefined | string

Static ErrDirective

ErrDirective: string = 'A patch directive could not be fulfilled' +' because the given directives were not' +' understood.'

Static ErrEncoding

ErrEncoding: string = "Encodings of the two documents do not match."

Static ErrFunction

ErrFunction: string = 'The nodeset function id() is not supported, and thus' +' attributes with the ID type are not known.'

Static ErrID

ErrID: string = 'The attribute xml:id as an ID attribute in XML documents is' +' not supported.'

Static ErrMultipleMatches

ErrMultipleMatches: string = "Multiple matches found."

Static ErrNamespaceURI

ErrNamespaceURI: string = 'The namespace URI value is not valid or the' +' target document did not have this declaration.'

Static ErrNoMatch

ErrNoMatch: string = "No match found."

Static ErrNodeTypeMismatch

ErrNodeTypeMismatch: string = "Type of the given node should match the target"

Static ErrNodeTypeText

ErrNodeTypeText: string = "This is expected to be a text node"

Static ErrPrefix

ErrPrefix: string = 'The namespace URI for the given prefix could not be' +' located or resolved.'

Static ErrPrefixUsed

ErrPrefixUsed: string = "The given prefix is being used."

Static ErrProlog

ErrProlog: string = "Patch failure related to XML prolog nodes."

Static ErrRoot

ErrRoot: string = 'The root element of the document cannot be removed or' +' another sibling element for the document root' +' element cannot be added.'

Static ErrSelEmpty

ErrSelEmpty: string = "`sel` must be provided and not empty."

Static ErrSelMissing

ErrSelMissing: string = "Missing `sel` attribute."

Static ErrType

ErrType: string = "Invalid type."

Static ErrWsAfter

ErrWsAfter: string = "No whitespace node found after target"

Static ErrWsAttribute

ErrWsAttribute: string = "`ws` is not allowed in attribute operation."

Static ErrWsBefore

ErrWsBefore: string = "No whitespace node found before target"

Static ErrWsTextNode

ErrWsTextNode: string = "`ws` is not allowed in text node operation."

Static ErrXML

ErrXML: string = "Invalid XML."

Static ErrorNamespace

ErrorNamespace: "urn:ietf:params:xml:ns:patch-ops-error" = "urn:ietf:params:xml:ns:patch-ops-error"

Error namespace defined by RFC.

Static ErrorPrefix

ErrorPrefix: "err" = "err"

Error namespace prefix used by exceptions.

Methods

createErrorNode

  • createErrorNode(doc?: DocumentImpl): any

toLocaleString

  • toLocaleString(): string

toString

  • toString(): string

Generated using TypeDoc