| Home | Libraries | People | FAQ | More

##### diagnostics::server_message

Gets the server-generated error message.

###### Synopsis

    string_view
    server_message() const noexcept;

###### 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.