Teuchos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Macros | Functions
Teuchos_TestForException.hpp File Reference

Standard test and throw macros. More...

#include "Teuchos_TypeNameTraits.hpp"
#include "Teuchos_stacktrace.hpp"
Include dependency graph for Teuchos_TestForException.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 Teuchos
 

Macros

#define TEUCHOS_STORE_STACKTRACE()
 
#define TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg)
 Macro for throwing an exception with breakpointing to ease debugging. More...
 
#define TEUCHOS_TEST_FOR_EXCEPTION_CLASS_FUNC(throw_exception_test, Exception, msg)
 Macro for throwing an exception from within a class method with breakpointing to ease debugging. More...
 
#define TEUCHOS_TEST_FOR_EXCEPTION_PURE_MSG(throw_exception_test, Exception, msg)
 Macro for throwing an exception with breakpointing to ease debugging. More...
 
#define TEUCHOS_TEST_FOR_EXCEPTION_PRINT(throw_exception_test, Exception, msg, out_ptr)
 This macro is the same as TEUCHOS_TEST_FOR_EXCEPTION() except that the exception will be caught, the message printed, and then rethrown. More...
 
#define TEUCHOS_TEST_FOR_EXCEPT(throw_exception_test)   TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, std::logic_error, "Error!")
 This macro is designed to be a short version of TEUCHOS_TEST_FOR_EXCEPTION() that is easier to call. More...
 
#define TEUCHOS_TEST_FOR_EXCEPT_MSG(throw_exception_test, msg)   TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, std::logic_error, msg)
 This macro is designed to be a short version of TEUCHOS_TEST_FOR_EXCEPTION() that is easier to call. More...
 
#define TEUCHOS_TEST_FOR_EXCEPT_PRINT(throw_exception_test, out_ptr)   TEUCHOS_TEST_FOR_EXCEPTION_PRINT(throw_exception_test, std::logic_error, "Error!", out_ptr)
 This macro is the same as TEUCHOS_TEST_FOR_EXCEPT() except that the exception will be caught, the message printed, and then rethrown. More...
 
#define TEUCHOS_TRACE(exc)
 This macro intercepts an exception, prints a standardized message including the current filename and line number, and then throws the exception up the stack. More...
 
#define TEUCHOS_TEST_FOR_TERMINATION(terminate_test, msg)
 This macro is to be used instead of TEUCHOS_TEST_FOR_EXCEPTION() to report an error in situations where an exception can't be throw (like in an destructor). More...
 

Functions

TEUCHOSCORE_LIB_DLL_EXPORT void Teuchos::TestForException_incrThrowNumber ()
 Increment the throw number. More...
 
TEUCHOSCORE_LIB_DLL_EXPORT int Teuchos::TestForException_getThrowNumber ()
 Increment the throw number. More...
 
TEUCHOSCORE_LIB_DLL_EXPORT void Teuchos::TestForException_break (const std::string &msg)
 The only purpose for this function is to set a breakpoint. More...
 
TEUCHOSCORE_LIB_DLL_EXPORT void Teuchos::TestForException_setEnableStacktrace (bool enableStrackTrace)
 Set at runtime if stacktracing functionality is enabled when * exceptions are thrown. More...
 
TEUCHOSCORE_LIB_DLL_EXPORT bool Teuchos::TestForException_getEnableStacktrace ()
 Get at runtime if stacktracing functionality is enabled when exceptions are thrown. More...
 
TEUCHOSCORE_LIB_DLL_EXPORT[[noreturn]]
void 
Teuchos::TestForTermination_terminate (const std::string &msg)
 Prints the message to std::cerr and calls std::terminate. More...
 

Detailed Description

Standard test and throw macros.

Definition in file Teuchos_TestForException.hpp.

Macro Definition Documentation

#define TEUCHOS_STORE_STACKTRACE ( )

Definition at line 91 of file Teuchos_TestForException.hpp.