RCSB PDB Protein Data Bank A Member of the wwPDB
An Information Portal to Biological Macromolecular Structures
PDB Home | Contact Us
next up previous contents
Next: About this document ... Up: ISTable Static Method Descriptions Previous: ISTable Static Method Descriptions

GetErrorMessage

NAME GetErrorMessage

PROTOTYPE

#include "ISTable.h"

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

EXAMPLE

#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);
  }
}
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
6/12/2002

 

© RCSB PDB