Go to the source code of this file.
Defines |
#define | MAX_ERROR_MSG_LENGTH 160 |
Enumerations |
enum | ErrorSeverityType { FATAL,
ERROR,
WARNING,
INFO
} |
Functions |
void | reportError (const char *msg, char *location, ErrorSeverityType severity) |
void | reportErrorInt (const char *msg, int value, char *location, ErrorSeverityType severity) |
Variables |
static const char | OutOfMemory [] = "Out of Memory" |
static const char | IncompatibleMatrices [] = "Incompatible matrix dimensions, exiting" |
static const char | BadCodeVersions [] = "Incompatible version of libraries and inversion code." |
static const char | BadCommandLineOption [] = "Unrecognized command-line parameter." |
static const char | NoInputData [] = "No input data, exiting" |
Define Documentation
#define MAX_ERROR_MSG_LENGTH 160 |
Level of error severity. FATAL reports message and halts execution of program. ERROR reports message and results may be incorrect or corrupt, but program attempts to complete. WARNING reports message, program continues to completion. INFO debugging and informative messages.
Enumeration Type Documentation
Severity of error
- Enumerator:
-
Function Documentation
Report error
- Parameters:
-
[in] | msg | String containing error message. |
[in] | location | String containing the originating function name. |
[in] | severity | ErrorSeverityType indicates the degree of concern for the error. Corresponds to enum ErrorSeverity. |
void reportErrorInt |
( |
const char * |
msg, |
|
|
int |
value, |
|
|
char * |
location, |
|
|
ErrorSeverityType |
severity | |
|
) |
| | |
Report error and include some numeric information in the message.
- Parameters:
-
[in] | msg | String containing error message. |
[in] | value | Numeric information for inclusion in the message. |
[in] | location | String containing the originating function name. |
[in] | severity | ErrorSeverityType indicates the degree of concern for the error. Corresponds to enum ErrorSeverity. |
Variable Documentation
const char BadCodeVersions[] = "Incompatible version of libraries and inversion code." [static] |
const char NoInputData[] = "No input data, exiting" [static] |