next up previous contents
Next: About this document ... Up: SSTable Static Method Descriptions Previous: SetUnion

GetErrorMessage

NAME GetErrorMessage

PROTOTYPE

#include "SSTable.h"

static const char * SSTable::GetErrorMessage(const int errCode);

EXAMPLE

#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);
  }
}
PURPOSE

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.

RECEIVES

errCode The numerical code for the error to retrieve a string representation of.

RETURN VALUE

const char *, a string representing the error.

REMARKS

None



Olivera Tosic
12/17/1999