Class representing an error.
Definition: error.h:47
const char * sqlstate()
Return a sqlstate for an error.
Definition: error.h:58
error_type m_type
Definition: error.h:72
char m_sqlstate[SQLSTATE_LENGTH+1]
Definition: error.h:73
Error(std::uint32_t error_code, const char *sqlstate, error_type type)
Definition: error.h:49
error_type type()
Return an error type.
Definition: error.h:68
std::uint32_t m_error_code
Definition: error.h:71
std::uint32_t error_code()
Return an error code.
Definition: error.h:63
error_type
Definition: error.h:35
@ ERR_SQLSTATE
Definition: error.h:35
@ ERR_ERRNO
Definition: error.h:35
Common definition between mysql server & client.
#define SQLSTATE_LENGTH
Definition: mysql_com.h:74