Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext
diagnostics::server_message

Gets the server-generated error message.

Synopsis
string_view
server_message() const;
Description

It's encoded according to character_set_results character set, which usually matches the connection's character set. It may potentially contain user input.

Exception safety

No-throw guarantee.

Object lifetimes

The returned view is valid as long as *this is alive, hasn't been assigned-to or moved-from, and clear hasn't been called. Moving *this invalidates the view.


PrevUpHomeNext