24#ifndef MYSQL_UTILS_ERROR_H
25#define MYSQL_UTILS_ERROR_H
41using Error_ptr = std::unique_ptr<mysql::utils::Error>;
62 [[maybe_unused]] std::size_t line,
const char *message) {
66 m_stream <<
"; Message: " << message;
Class representing an error.
Definition: error.h:48
Error representation used internally in case final error code is unknown and error situation handling...
Definition: error.h:45
std::stringstream m_stream
Internal stream to build the message string.
Definition: error.h:87
const char * get_message() const noexcept
Returns only message, no other information.
Definition: error.h:84
Error(const char *type, const char *file, std::size_t line)
Constructor.
Definition: error.h:53
std::string m_message
Message ready to be displayed.
Definition: error.h:88
const char * what() const noexcept
Information about error.
Definition: error.h:80
const char * m_user_message
Only message.
Definition: error.h:89
Error(const char *type, const char *file, std::size_t line, const char *message)
Constructor.
Definition: error.h:61
bool is_error() const
Function that indicates whether error occurred.
Definition: error.h:76
bool m_is_error
object state, "false" means "no error"
Definition: error.h:90
Definition: gtid_format.h:46
std::unique_ptr< mysql::utils::Error > Error_ptr
Definition: error.h:41
required string type
Definition: replication_group_member_actions.proto:34