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 255
00020
00024 typedef enum {FATAL, ERROR, WARNING, INFO} ErrorSeverityType;
00025
00026 void reportError(const char *msg, const char *location, ErrorSeverityType severity);
00027 void reportErrorInt(const char *msg, int value, const char *location, ErrorSeverityType severity);
00028 void reportErrorStr(const char *msg, const char *value, const char *location, ErrorSeverityType severity);
00029 void reportErrorNo(int errNo, const char *value, const 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 const static char CopyFailed[] = "Unable to copy files to output directory.";
00037
00038 #endif