|
|


Public Member Functions | |
| error (const string &title) | |
| Construct from title string. | |
| error (const dictionary &errDict) | |
| Construct from dictionary. | |
| string | message () const |
| const string & | functionName () const |
| const string & | sourceFileName () const |
| label | sourceFileLineNumber () const |
| void | throwExceptions () |
| void | dontThrowExceptions () |
| OSstream & | operator() (const char *functionName, const char *sourceFileName, const int sourceFileLineNumber=0) |
| Convert to Ostream. | |
| OSstream & | operator() (const string &functionName, const char *sourceFileName, const int sourceFileLineNumber=0) |
| operator OSstream & () | |
| Convert to Ostream. | |
| operator dictionary () const | |
| Create and return a dictionary. | |
| void | exit (const int errNo=1) |
| Exit : can be called for any error to exit program. Prints stack. | |
| void | abort () |
| Abort : used to stop code for fatal errors. Prints stack before. | |
Static Public Member Functions | |
| void | printStack (Ostream &os) |
| Helper function to print a stack. | |
Protected Attributes | |
| string | functionName_ |
| string | sourceFileName_ |
| label | sourceFileLineNumber_ |
| bool | abort_ |
| bool | throwExceptions_ |
| OStringStream * | messageStreamPtr_ |
Friends | |
| Ostream & | operator<< (Ostream &, const error &) |
|
|
Construct from title string.
|
|
|
Construct from dictionary.
|
|
|
Abort : used to stop code for fatal errors. Prints stack before. exiting. Reimplemented in IOerror. |
|
|
|
|
|
Exit : can be called for any error to exit program. Prints stack. before exiting. Reimplemented in IOerror. |
|
|
Definition at line 102 of file error.H. References Foam::label. |
|
|
|
|
|
Create and return a dictionary.
Reimplemented in IOerror. |
|
|
Convert to Ostream. Prints basic message and then returns Ostream for further info. Reimplemented from messageStream. |
|
||||||||||||||||
|
Reimplemented from messageStream. |
|
||||||||||||||||
|
Convert to Ostream. Prints basic message and then returns Ostream for further info. Reimplemented from messageStream. |
|
|
Helper function to print a stack.
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|