[#BloombergLP-bdljsn-JsonUtil-printError-070]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::xref:BloombergLP/bdljsn/JsonUtil.adoc[JsonUtil]::printError
:relfileprefix: ../../../
:mrdocs:

Print, to the specified `stream`, a description of the specified `error`, containing the line and column in the specified `input` where the `error` occurred&period; Return a reference to the modifiable `stream`&period; If `error&period;location()` does not refer to a valid location in `input` an unspecified error description will be written to `stream`&period; Note that the caller should ensure `input` refers to the same input position as when `input` was supplied to `read` (or whatever operation created `error`)&period;

== Synopsis

Declared in `&lt;bdljsn&lowbar;jsonutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
std::ostream&
printError(
    std::ostream& stream,
    std::istream& input,
    xref:BloombergLP/bdljsn/Error.adoc[Error] const& error);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
