BloombergLP::bdljsn::JsonUtil::printError

Print a description of error to stream.

Synopses

Declared in <bdljsn_jsonutil.h>

Print a description of error to stream.

static
std::ostream&
printError(
    std::ostream& stream,
    std::istream& input,
    Error const& error);
» more...

Print a description of error to stream.

static
std::ostream&
printError(
    std::ostream& stream,
    std::string_view const& input,
    Error const& error);
» more...

Print a description of error to stream.

static
std::ostream&
printError(
    std::ostream& stream,
    std::streambuf* input,
    Error const& error);
» more...

Return Value

a reference to stream

Parameters

NameDescription
streamstream to receive the error description
inputsource used to locate the error
errorparse error to describe