#include <error.h>
Public Member Functions | |
Error (const char *s) | |
void | warning (const char *msg=0) |
void | nonfatal (const char *msg=0) |
void | fatal (const char *=0) |
void | memory (const void *=0) |
This class prints error messages in a standard way.
|
constructor Description:
|
|
reports a fatal error Reports a fatal error. If the .DEBUG_MATRIX. flag has been set then the routine starts an infinte loop. An exit(1) is executed otherwise. The usual call to this function is made through the $$ operator, {i.e.} {verbatim} Error error("routine name") ; error << "A fatal error occured " ; error.fatal() ; {verbatim}
|
|
reports a memory allocation error Reports a memory allocation error. If the DEBUG_PLIB flag has been set then the routine starts an infinte loop. An exit(1) is executed otherwise. The usual call to this function is made through the operator>> , {i.e.} {verbatim} Error error("variable name") ; float* var = new float[bigSize] ; error.memory(var) ; {verbatim}
|
|
reports a warning error message The usual call to this function is made through the $$ operator, {i.e.} {verbatim} Error error("routine name") ; error << "An error occured " ; error.warning() ; {verbatim}
|