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);

Print a description of error to stream.

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

Print a description of error to stream.

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

Return Value

a reference to stream

Parameters

Name

Description

stream

stream to receive the error description

input

source used to locate the error

error

parse error to describe

Created with MrDocs