#include <error.h>
Public Methods | |
Error () | |
Error (const char *s) | |
~Error () | |
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.
Definition at line 111 of file error.h.
|
constructor Description:.
|
|
reports a fatal error Reports a fatal error. If the \verb.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 $\ll$ operator, {i.e.} \begin{verbatim} Error error("routine name") ; error << "A fatal error occured " ; error.fatal() ; \end{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.} \begin{verbatim} Error error("variable name") ; float* var = new float[bigSize] ; error.memory(var) ; \end{verbatim}
|
|
reports a warning error message The usual call to this function is made through the $\ll$ operator, {i.e.} \begin{verbatim} Error error("routine name") ; error << "An error occured " ; error.warning() ; \end{verbatim}.
|