MySQL 9.1.0
Source Code Documentation
|
It defines the error types which could happen when reading binlog files or deserializing binlog events. More...
#include <binlog_istream.h>
Public Types | |
enum | Error_type { SUCCESS = 0 , READ_EOF = 1 , BOGUS , SYSTEM_IO , MEM_ALLOCATE , TRUNC_EVENT , TRUNC_FD_EVENT , EVENT_TOO_LARGE , CHECKSUM_FAILURE , INVALID_EVENT , CANNOT_OPEN , HEADER_IO_FAILURE , BAD_BINLOG_MAGIC , INVALID_ENCRYPTION_HEADER , CANNOT_GET_FILE_PASSWORD , READ_ENCRYPTED_LOG_FILE_IS_NOT_SUPPORTED , ERROR_DECRYPTING_FILE , EVENT_UNSUPPORTED_NEW_VERSION } |
Possible errors which happens when reading an event. More... | |
Public Member Functions | |
Binlog_read_error ()=default | |
Binlog_read_error (Error_type type) | |
bool | has_error () const |
bool | has_fatal_error () const |
Error_type | get_type () const |
Return the error encountered when reading events. More... | |
const char * | get_str () const |
Return error message of the error type. More... | |
bool | set_type (Error_type type) |
Set m_error to error. More... | |
Private Attributes | |
Error_type | m_type = SUCCESS |
It defines the error types which could happen when reading binlog files or deserializing binlog events.
String error message of the error types are defined as well. It has a member variable to store an error type and provides a few functions to check the error type stored in the member variable.
Possible errors which happens when reading an event.
|
default |
|
inline |
const char * Binlog_read_error::get_str | ( | ) | const |
Return error message of the error type.
|
inline |
Return the error encountered when reading events.
|
inline |
|
inline |
|
inline |
Set m_error to error.
[in] | type | The error type will be set |
false | If error is SUCCESS |
true | If error is not SUCCESS. |
|
private |