#include "SSTable.h"
static const char * SSTable::GetErrorMessage(const int errCode);
#include "SSTable.h"
#include "TableError.h"
SSTable s("MyTable");
CifString cs("Target"), col1("column1");
int errCode = 0;
errCode = s.AddColumn(col1);
if (errCode < 0) {
log_error(SSTable::GetErrorMessage(errCode));
if (errCode < SSTable::TABLE_WARNING) {
log_error("FATAL ERROR");
exit(errCode);
}
}
GetErrorMessage is a static method that returns the string representation of the error given by an error code. The error codes are located in TableError.h.
| errCode | The numerical code for the error to retrieve a string representation of. |
const char *, a string representing the error.
None