#include <error.h>
Static Public Methods | |
| void | fatal (const char *) |
| Always exit after displaying message. More... | |
| void | fatal (const string &) |
| Always exit after displaying message. More... | |
| void | fatal (const char *, const char *) |
| Always exit after displaying message. More... | |
| void | fatal (const string &, const string &) |
| Always exit after displaying message. More... | |
| void | warning (const char *) |
| Print an error message and exit if error::strict is true. More... | |
| void | warning (const string &) |
| Print an error message and exit if error::strict is true. More... | |
| void | warning (const char *, const char *) |
| Print an error message and exit if error::strict is true. More... | |
| void | warning (const string &, const string &) |
| Print an error message and exit if error::strict is true. More... | |
| void | message (const char *) |
| Print an informational message if error::messages is nonzero. More... | |
| void | message (const string &) |
| Print an informational message if error::messages is nonzero. More... | |
| void | message (const char *, const char *) |
| Print an informational message if error::messages is nonzero. More... | |
| void | message (const string &, const string &) |
| Print an informational message if error::messages is nonzero. More... | |
| ostream& | stream (ostream &s) |
| Set the output stream. More... | |
| ostream& | stream () |
Static Public Attributes | |
| int | strict = 0 |
| Boolean to cause warnings to abort if true. More... | |
| int | messages = 0 |
| Boolean to display messages if true. More... | |
Static Private Attributes | |
| ostream* | pout = & cerr |
| The output stream for errors. More... | |
If two arguments are supplied to an error reporting function, error will output the two arguments separated by a single space.
Output will always be terminated by a newline.
Output is sent to standard error (cerr) unless redirected to another ostream using error::stream.
fatal will always exit gracefully after displaying the message. warning will not exit unless error::strict is nonzero. message will not exit at all.
message will not display unless error::messages is nonzero.
error::strict and error::messages default to 0 (FALSE)
Definition at line 71 of file error.h.
|
|
Always exit after displaying message.
|
|
|
Always exit after displaying message.
|
|
|
Always exit after displaying message.
|
|
|
|
Print an informational message if error::messages is nonzero.
|
|
|
Print an informational message if error::messages is nonzero.
|
|
|
Print an informational message if error::messages is nonzero.
|
|
|
Print an informational message if error::messages is nonzero.
Definition at line 88 of file error.cc. Referenced by message().
|
|
|
Definition at line 138 of file error.h. Referenced by powell::fmin(), powell::minimize(), montecarlo::minimize(), super_film::table_init(), and touchstone_read::value().
|
|
|
Set the output stream. Default is cerr.
|
|
|
Print an error message and exit if error::strict is true. Otherwise just warn the user. |
|
|
Print an error message and exit if error::strict is true. Otherwise just warn the user. |
|
|
Print an error message and exit if error::strict is true. Otherwise just warn the user. |
|
|
|
Boolean to display messages if true. Defaults to false. |
|
|
The output stream for errors. Defaults to standard error (cerr). |
|
|
Boolean to cause warnings to abort if true. Defaults to false. |
Please direct comments and corrections to
supermix@submm.caltech.edu
Go to the supermix home page
Generated by
1.2.7