Teuchos Package Browser (Single Doxygen Collection)
Version of the Day
|
#include "Teuchos_GlobalMPISession.hpp"
#include "Teuchos_FancyOStream.hpp"
#include "Teuchos_TypeNameTraits.hpp"
#include "Teuchos_stacktrace.hpp"
#include "Teuchos_Assert.hpp"
Go to the source code of this file.
Macros | |
#define | TEUCHOS_GET_STORED_STACKTRACE() "" |
#define | TEUCHOS_STANDARD_CATCH_STATEMENTS_IMPL(VERBOSE, ERR_STREAM, SHOW_STACK_TRACE, SUCCESS_FLAG) |
Implementation of TEUCHOS_STANDARD_CATCH_STATEMENTS(...) that allows toggle of showing stack trace. More... | |
#define | TEUCHOS_STANDARD_CATCH_STATEMENTS(VERBOSE, ERR_STREAM, SUCCESS_FLAG) TEUCHOS_STANDARD_CATCH_STATEMENTS_IMPL(VERBOSE, ERR_STREAM, true, SUCCESS_FLAG) |
Simple macro that catches and reports standard exceptions and other exceptions. More... | |
#define TEUCHOS_GET_STORED_STACKTRACE | ( | ) | "" |
Definition at line 26 of file Teuchos_StandardCatchMacros.hpp.
#define TEUCHOS_STANDARD_CATCH_STATEMENTS_IMPL | ( | VERBOSE, | |
ERR_STREAM, | |||
SHOW_STACK_TRACE, | |||
SUCCESS_FLAG | |||
) |
Implementation of TEUCHOS_STANDARD_CATCH_STATEMENTS(...) that allows toggle of showing stack trace.
Definition at line 33 of file Teuchos_StandardCatchMacros.hpp.
#define TEUCHOS_STANDARD_CATCH_STATEMENTS | ( | VERBOSE, | |
ERR_STREAM, | |||
SUCCESS_FLAG | |||
) | TEUCHOS_STANDARD_CATCH_STATEMENTS_IMPL(VERBOSE, ERR_STREAM, true, SUCCESS_FLAG) |
Simple macro that catches and reports standard exceptions and other exceptions.
This macro should be used to write simple main()
program functions wrapped in a try statement as:
NOTE: This macro will print out stacktraces generated by exceptions thrown with the TEUCHOS_TEST_FOR_EXCEPTION() family of macros (see the main doc page for details).
Definition at line 104 of file Teuchos_StandardCatchMacros.hpp.