#include <kcdb.h>
Public Types | |
enum | Code { SUCCESS, NOIMPL, INVALID, NOFILE, NOPERM, BROKEN, DUPREC, NOREC, LOGIC, SYSTEM, MISC = 15 } |
Error codes. More... | |
Public Member Functions | |
Error () | |
Default constructor. | |
Error (Code code, const char *message) | |
Constructor. | |
~Error () | |
Destructor. | |
void | set (Code code, const char *message) |
Set the error information. | |
Code | code () const |
Get the error code. | |
const char * | name () const |
Get the readable string of the code. | |
const char * | message () const |
Get the supplement message. | |
operator int32_t () | |
Cast operator to integer. | |
Static Public Member Functions | |
static const char * | codename (Code code) |
Get the readable string of an error code. |
Error data.
Error codes.
kyotocabinet::FileDB::Error::Error | ( | ) | [explicit] |
Default constructor.
kyotocabinet::FileDB::Error::Error | ( | Code | code, | |
const char * | message | |||
) | [explicit] |
Constructor.
code | an error code. | |
message | a supplement message. |
kyotocabinet::FileDB::Error::~Error | ( | ) |
Destructor.
void kyotocabinet::FileDB::Error::set | ( | Code | code, | |
const char * | message | |||
) |
Set the error information.
code | an error code. | |
message | a supplement message. |
Code kyotocabinet::FileDB::Error::code | ( | ) | const |
Get the error code.
const char* kyotocabinet::FileDB::Error::name | ( | ) | const |
Get the readable string of the code.
const char* kyotocabinet::FileDB::Error::message | ( | ) | const |
Get the supplement message.
static const char* kyotocabinet::FileDB::Error::codename | ( | Code | code | ) | [static] |
Get the readable string of an error code.
code | the error code. |
kyotocabinet::FileDB::Error::operator int32_t | ( | ) |
Cast operator to integer.