![]() |
MySQL 9.5.0
Source Code Documentation
|
Error message. More...
#include <classic_protocol_message.h>
Public Types | |
| using | string_type = std::conditional_t< Borrowed, std::string_view, std::string > |
Public Member Functions | |
| constexpr | Error ()=default |
| constexpr | Error (uint16_t error_code, string_type message, string_type sql_state="HY000") |
| construct an Error message. More... | |
| constexpr uint16_t | error_code () const noexcept |
| constexpr void | error_code (uint16_t code) |
| constexpr string_type | sql_state () const |
| constexpr void | sql_state (const string_type &state) |
| constexpr string_type | message () const |
| constexpr void | message (const string_type &msg) |
Private Attributes | |
| uint16_t | error_code_ {0} |
| string_type | message_ |
| string_type | sql_state_ |
Error message.
| using classic_protocol::borrowable::message::server::Error< Borrowed >::string_type = std::conditional_t<Borrowed, std::string_view, std::string> |
|
constexprdefault |
|
inlineconstexpr |
construct an Error message.
| error_code | error code |
| message | error message |
| sql_state | SQL state |
|
inlineconstexprnoexcept |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
private |
|
private |
|
private |