Loading TOC...

cpf.documentGetError

cpf.documentGetError(
   $doc as String
) as Node?

Summary

Fetch a trace of the error that caused the document's processing to fail, if any.

Parameters
$doc The URI of the document.

Example

const cpf = require('/MarkLogic/cpf/cpf');

cpf.documentGetError('/myDocs/example.xml');
   

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.