MySQL 8.4.2
Source Code Documentation
mysql::serialization::Serialization_error Class Reference

Error used internally in serialization framework. More...

#include <serialization_error.h>

Inheritance diagram for mysql::serialization::Serialization_error:
[legend]

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

Detailed Description

Error used internally in serialization framework.

Constructor & Destructor Documentation

◆ Serialization_error() [1/2]

mysql::serialization::Serialization_error::Serialization_error ( const char *  file,
std::size_t  line,
const char *  message,
const Serialization_error_type error_type 
)

Constructor.

Parameters
[in]fileFile name in which exception occurred
[in]lineLine number in which exception occurred
[in]messageAdditional information
[in]error_typeType of error

◆ Serialization_error() [2/2]

mysql::serialization::Serialization_error::Serialization_error ( )
default

Member Function Documentation

◆ get_type()

const Serialization_error_type & mysql::serialization::Serialization_error::get_type ( ) const

Error type accessor.

Returns
Error type

Member Data Documentation

◆ m_type

Serialization_error_type mysql::serialization::Serialization_error::m_type
private

Error type.


The documentation for this class was generated from the following files: