Class representing an error.
Definition: error.h:48
const char * sqlstate()
Return a sqlstate for an error.
Definition: error.h:59
error_type m_type
Definition: error.h:73
char m_sqlstate[SQLSTATE_LENGTH+1]
Definition: error.h:74
Error(std::uint32_t error_code, const char *sqlstate, error_type type)
Definition: error.h:50
error_type type()
Return an error type.
Definition: error.h:69
std::uint32_t m_error_code
Definition: error.h:72
std::uint32_t error_code()
Return an error code.
Definition: error.h:64
error_type
Definition: error.h:36
@ ERR_SQLSTATE
Definition: error.h:36
@ ERR_ERRNO
Definition: error.h:36
Common definition between mysql server & client.
#define SQLSTATE_LENGTH
Definition: mysql_com.h:75