void ContextIOERR :: print() { if ( msg ) { __OOFEM_ERROR3(file, line, "ContextIOERR encountered, error code: %d\n%s", error, msg); } else { __OOFEM_ERROR2(file, line, "ContextIOERR encountered, error code: %d", error); } }
void PrimaryUnknownMapper :: error(const char *file, int line, const char *format, ...) const { char buffer [ MAX_ERROR_MSG_LENGTH ]; va_list args; va_start(args, format); vsprintf(buffer, format, args); va_end(args); __OOFEM_ERROR2(file, line, "Class: PrimaryUnknownMapper\n%s", buffer); }