![]() |
|
#include <oomph_definitions.h>
Public Member Functions | |
OomphLibError (const std::string &error_description, const std::string &function_name, const char *location) | |
![]() | |
void | disable_error_message () |
Static Public Member Functions | |
static void | set_stream_pt (std::ostream *const &stream_pt) |
static void | set_output_width (const unsigned &output_width) |
Static Private Attributes | |
static std::ostream * | Stream_pt = &std::cerr |
Output stream that is used to write the errors. More... | |
static unsigned | Output_width = 70 |
Width in characters of the output report. More... | |
Additional Inherited Members | |
![]() | |
OomphLibException (const std::string &error_description, const std::string &function_name, const char *location, const std::string &exception_type, std::ostream &exception_stream, const unsigned &output_width, bool list_trace_back) | |
~OomphLibException () throw () | |
The destructor cannot throw an exception (C++ STL standard) More... | |
![]() | |
std::ostream * | Exception_stream_pt |
Exception stream to which we write message in destructor. More... | |
std::stringstream * | Exception_stringstream_pt |
String stream that records the error message. More... | |
bool | Suppress_error_message |
An OomphLibError object which should be thrown when an run-time error is encountered. The error stream and stream width can be specified. The default is cerr with a width of 70 characters.
|
inline |
Constructor requires the error description and the function in which the error occured and the location provided by the OOMPH_EXCEPTION_LOCATION macro
|
inlinestatic |
Static member function used to specify the width (in characters) of the error stream
|
inlinestatic |
Static member function used to specify the error stream, which must be passed as a pointer because streams cannot be copied.
References GlobalParameters::Stream_pt.
Referenced by main().
|
staticprivate |
Width in characters of the output report.
Default output width for OomphLibErrors (70)
|
staticprivate |
Output stream that is used to write the errors.
Default output stream for OomphLibErorrs (cerr)