Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008 #ifndef ERRORHANDLER_H_
00009 #define ERRORHANDLER_H_
00010
00019 #define MAX_ERROR_MSG_LENGTH 160
00020
00021
00022
00026 typedef enum {FATAL, ERROR, WARNING, INFO} ErrorSeverityType;
00027
00028 void reportError(const char *msg, char *location, ErrorSeverityType severity);
00029 void reportErrorInt(const char *msg, int value, char *location, ErrorSeverityType severity);
00030
00031 const static char OutOfMemory[] = "Out of Memory";
00032 const static char IncompatibleMatrices[] = "Incompatible matrix dimensions, exiting";
00033 const static char BadCodeVersions[] = "Incompatible version of libraries and inversion code.";
00034 const static char BadCommandLineOption[] = "Unrecognized command-line parameter.";
00035 const static char NoInputData[] = "No input data, exiting";
00036
00037 #endif