Go to the source code of this file.
Defines |
#define | MAX_ERROR_MSG_LENGTH 255 |
Enumerations |
enum | ErrorSeverityType { FATAL,
ERROR,
WARNING,
INFO
} |
Functions |
void | reportError (const char *msg, const char *location, ErrorSeverityType severity) |
void | reportErrorInt (const char *msg, int value, const char *location, ErrorSeverityType severity) |
void | reportErrorStr (const char *msg, const char *value, const char *location, ErrorSeverityType severity) |
void | reportErrorNo (int errNo, const char *value, const 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" |
static const char | CopyFailed [] = "Unable to copy files to output directory." |
Define Documentation
#define MAX_ERROR_MSG_LENGTH 255 |
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
void reportError |
( |
const char * |
msg, |
|
|
const char * |
location, |
|
|
ErrorSeverityType |
severity | |
|
) |
| | |
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, |
|
|
const 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. |
void reportErrorNo |
( |
int |
errNo, |
|
|
const char * |
value, |
|
|
const char * |
location, |
|
|
ErrorSeverityType |
severity | |
|
) |
| | |
Report error and include some numeric information in the message.
- Parameters:
-
[in] | errNo | Standard error number. |
[in] | value | string 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. |
void reportErrorStr |
( |
const char * |
msg, |
|
|
const char * |
value, |
|
|
const char * |
location, |
|
|
ErrorSeverityType |
severity | |
|
) |
| | |
Report error and include some text information in the message.
- Parameters:
-
[in] | msg | String containing error message. |
[in] | value | string 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 CopyFailed[] = "Unable to copy files to output directory." [static] |
const char NoInputData[] = "No input data, exiting" [static] |