![]() |
![]() An Information Portal to Biological Macromolecular Structures |
|
PDB Home |
Contact Us ![]() |
![]() |
Software Tools Home | Dictionary Home | PDBML Home |
![]() |
#include "ISTable.h"
static const char * ISTable::GetErrorMessage(const int errCode);
#include "ISTable.h"
#include "TableError.h"
ISTable s("MyTable");
CifString cs("Target"), col1("column1");
int errCode = 0;
errCode = s.AddColumn(col1);
if (errCode < 0) {
log_error(ISTable::GetErrorMessage(errCode));
if (errCode < ISTable::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