10 #include "Teuchos_CWrapperSupport_Cpp.hpp"
11 #include "Teuchos_VerboseObject.hpp"
20 if (
is_null(printErrorOStream)) {
23 return printErrorOStream;
27 bool& showStackTraceOnExceptionImpl()
29 static bool showStackTraceOnException =
false;
30 return showStackTraceOnException;
49 printErrorOStreamImpl() = errorOStream;
55 return printErrorOStreamImpl();
60 const bool showStrackTraceOnException)
62 showStackTraceOnExceptionImpl() = showStrackTraceOnException;
68 return showStackTraceOnExceptionImpl();
static RCP< FancyOStream > getPrintErrorOStream()
Get the ostream that will be printed when errors occur.
static bool getShowStackTraceOnException()
Get if the stacktrace should be shown on every caught exception.
bool is_null(const ArrayRCP< T > &p)
Returns true if p.get()==NULL.
static RCP< FancyOStream > getDefaultOStream()
Get the default output stream object.
static void setPrintErrorOStream(const RCP< FancyOStream > &errorOStream)
Set the ostream that will be printed to when errors occur.
Smart reference counting pointer class for automatic garbage collection.
static void setShowStackTraceOnException(const bool showStrackTraceOnException)
Set if the stacktrace should be shown on every caught exception.