|
|
|
error Class ReferenceClass to handle errors and exceptions in a simple, consistent stream-based manner. More...
Inheritance diagram for error:
![]()
Collaboration diagram for error:
![]()
Detailed DescriptionClass to handle errors and exceptions in a simple, consistent stream-based manner.The error class is globaly instantiated with a title string. Errors, messages and other data are piped to the messageStream class in the standard manner. Manipulators are supplied for exit and abort which may terminate the program or throw an exception depending of if the exception handling has beed switched on (off by default).
Definition at line 62 of file error.H. Constructor & Destructor DocumentationConstruct from title string.
Definition at line 28 of file error.C. References IOstream::good(), and error::messageStreamPtr_.
Here is the call graph for this function:
![]()
Construct from dictionary.
Definition at line 49 of file error.C. References Foam::endl(), error::exit(), and Foam::Perr.
Here is the call graph for this function:
![]()
Member Function Documentation
Definition at line 119 of file error.H. References error::sourceFileLineNumber_. Referenced by Foam::tryCalc().
Here is the caller graph for this function:
![]()
Convert to Ostream. Prints basic message and then returns Ostream for further info. Reimplemented from messageStream. Definition at line 93 of file error.C. References error::messageStreamPtr_.
Convert to Ostream. Prints basic message and then returns Ostream for further info. Reimplemented from messageStream. Definition at line 124 of file error.C. Referenced by error::operator()().
Here is the caller graph for this function:
![]()
Explicitly convert to Ostream for << operations.
Reimplemented from messageStream. Definition at line 154 of file error.H. References error::operator OSstream &().
Here is the call graph for this function:
![]()
Exit : can be called for any error to exit program. Prints stack. before exiting. Reimplemented in IOerror. Definition at line 162 of file error.C. Referenced by error::abort(), and error::error().
Here is the caller graph for this function:
![]()
Abort : used to stop code for fatal errors. Prints stack before. exiting. Reimplemented in IOerror. Definition at line 200 of file error.C. References Foam::endl(), error::exit(), and Foam::Perr.
Here is the call graph for this function:
![]()
Friends And Related Function Documentation
Member Data Documentation
The documentation for this class was generated from the following files:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||