printError overloads
Declared in <bdljsn_jsonutil.h>
Print, to the specified stream, a description of the specified error, containing the line and column in the specified input where the error occurred. Return a reference to the modifiable stream. If error.location() does not refer to a valid location in input an unspecified error description will be written to stream. 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).
static
std::ostream&
printError(
std::ostream& stream,
std::istream& input,
Error const& error);
» more...
Print to stream a description of error relative to input. Return a reference to stream.
static
std::ostream&
printError(
std::ostream& stream,
std::string_view const& input,
Error const& error);
» more...
Print to stream a description of error relative to input. Return a reference to stream.
static
std::ostream&
printError(
std::ostream& stream,
std::streambuf* input,
Error const& error);
» more...