![]() |
MySQL
8.0.12
Source Code Documentation
|
The class fatal is used to emit an error message and stop the server by crashing it. More...
#include <ut0ut.h>
Public Member Functions | |
fatal () | |
Default constructor uses ER_IB_MSG_0. More... | |
fatal (int err) | |
Default constructor uses ER_IB_MSG_0. More... | |
template<class... Args> | |
fatal (int err, Args &&... args) | |
Constructor. More... | |
virtual | ~fatal () |
Destructor. More... | |
![]() | |
virtual | ~logger () |
Destructor. More... | |
template<class... Args> | |
logger & | log (int err, Args &&... args) |
Format an error message. More... | |
template<typename T > | |
logger & | operator<< (const T &rhs) |
std::ostream & | write (const char *buf, std::streamsize count) |
Write the given buffer to the internal string stream object. More... | |
std::ostream & | write (const byte *buf, std::streamsize count) |
Write the given buffer to the internal string stream object. More... | |
Additional Inherited Members | |
![]() | |
std::ostringstream | m_oss |
For converting the message into a string. More... | |
int | m_err {} |
Error code in errmsg-*.txt. More... | |
loglevel | m_level {INFORMATION_LEVEL} |
Error logging level. More... | |
![]() | |
logger (loglevel level, int err) | |
Constructor. More... | |
template<class... Args> | |
logger (loglevel level, int err, Args &&... args) | |
Constructor. More... | |
logger (loglevel level) | |
Constructor. More... | |
![]() | |
template<class... Args> | |
static std::string | msg (int err, Args &&... args) |
Format an error message. More... | |
![]() | |
static constexpr const char * | PREFIX = "InnoDB: " |
String prefix for all log messages. More... | |
The class fatal is used to emit an error message and stop the server by crashing it.
Use this class when MySQL server needs to be stopped immediately. Refer to the documentation of class info for usage details.
|
inline |
Default constructor uses ER_IB_MSG_0.
|
inlineexplicit |
Default constructor uses ER_IB_MSG_0.
|
inlineexplicit |
Constructor.
[in] | err | Error code from errmsg-*.txt. |
[in] | args | Variable length argument list |
|
virtual |
Destructor.