42 #include "Teuchos_CWrapperSupport_Cpp.hpp"
43 #include "Teuchos_VerboseObject.hpp"
52 if (
is_null(printErrorOStream)) {
55 return printErrorOStream;
59 bool& showStackTraceOnExceptionImpl()
61 static bool showStackTraceOnException =
false;
62 return showStackTraceOnException;
81 printErrorOStreamImpl() = errorOStream;
87 return printErrorOStreamImpl();
92 const bool showStrackTraceOnException)
94 showStackTraceOnExceptionImpl() = showStrackTraceOnException;
100 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.