![]() |
MySQL 9.5.0
Source Code Documentation
|
Error used internally in serialization framework. More...
#include <serialization_error.h>
Public Member Functions | |
| Serialization_error (const char *file, std::size_t line, const char *message, const Serialization_error_type &error_type) | |
| Constructor. More... | |
| Serialization_error ()=default | |
| const Serialization_error_type & | get_type () const |
| Error type accessor. More... | |
Public Member Functions inherited from mysql::utils::Error | |
| Error ()=default | |
| Error (const char *type, const char *file, std::size_t line) | |
| Constructor. More... | |
| Error (const char *type, const char *file, std::size_t line, const char *message) | |
| Constructor. More... | |
| bool | is_error () const |
| Function that indicates whether error occurred. More... | |
| const char * | what () const noexcept |
| Information about error. More... | |
| const char * | get_message () const noexcept |
| Returns only message, no other information. More... | |
Private Attributes | |
| Serialization_error_type | m_type |
| Error type. More... | |
Additional Inherited Members | |
Protected Attributes inherited from mysql::utils::Error | |
| std::stringstream | m_stream |
| Internal stream to build the message string. More... | |
| std::string | m_message |
| Message ready to be displayed. More... | |
| const char * | m_user_message |
| Only message. More... | |
| bool | m_is_error = false |
| object state, "false" means "no error" More... | |
Error used internally in serialization framework.
| mysql::serialization::Serialization_error::Serialization_error | ( | const char * | file, |
| std::size_t | line, | ||
| const char * | message, | ||
| const Serialization_error_type & | error_type | ||
| ) |
Constructor.
| [in] | file | File name in which exception occurred |
| [in] | line | Line number in which exception occurred |
| [in] | message | Additional information |
| [in] | error_type | Type of error |
|
default |
| const Serialization_error_type & mysql::serialization::Serialization_error::get_type | ( | ) | const |
Error type accessor.
|
private |
Error type.