|
Teuchos - Trilinos Tools Package
Version of the Day
|
Defines | |
| #define | TEUCHOS_CWRAPPER_TRY(IERR) |
| Define a try block. | |
| #define | TEUCHOS_CWRAPPER_CATCH_ERROR_CODE(IERR) |
| Define the catch blocks and set the error code. | |
| #define | TEUCHOS_CWRAPPER_SET_ERROR_CODE(IERR, IERR_VALUE) |
| Set the error code. | |
Functions | |
| static void | Teuchos::CWrapperErrorHandling::setPrintErrorOStream (const RCP< FancyOStream > &errorOStream) |
| Set the ostream that will be printed to when errors occur. | |
| static RCP< FancyOStream > | Teuchos::CWrapperErrorHandling::getPrintErrorOStream () |
| Get the ostream that will be printed when errors occur. | |
| #define TEUCHOS_CWRAPPER_TRY | ( | IERR | ) |
TEUCHOS_TEST_FOR_EXCEPT((IERR) == 0); \ (*(IERR)) = 0; \ bool cwrapper_try_success = true; \ try
Define a try block.
Definition at line 98 of file Teuchos_CWrapperSupport_Cpp.hpp.
| #define TEUCHOS_CWRAPPER_CATCH_ERROR_CODE | ( | IERR | ) |
TEUCHOS_STANDARD_CATCH_STATEMENTS_IMPL( \
true, *Teuchos::CWrapperErrorHandling::getPrintErrorOStream(), \
Teuchos::CWrapperErrorHandling::getShowStackTraceOnException(), \
cwrapper_try_success ); \
if (!cwrapper_try_success) { (*(IERR)) = -1; }
Define the catch blocks and set the error code.
Definition at line 111 of file Teuchos_CWrapperSupport_Cpp.hpp.
| #define TEUCHOS_CWRAPPER_SET_ERROR_CODE | ( | IERR, | |
| IERR_VALUE | |||
| ) |
if ((IERR)) { \
(*(IERR)) = (IERR_VALUE); \
}
Set the error code.
This function is to be used inside of the try/catch blocks to set the error code.
Definition at line 128 of file Teuchos_CWrapperSupport_Cpp.hpp.
| void Teuchos::CWrapperErrorHandling::setPrintErrorOStream | ( | const RCP< FancyOStream > & | errorOStream | ) | [static] |
Set the ostream that will be printed to when errors occur.
Definition at line 77 of file Teuchos_CWrapperSupport.cpp.
| RCP< FancyOStream > Teuchos::CWrapperErrorHandling::getPrintErrorOStream | ( | ) | [static] |
Get the ostream that will be printed when errors occur.
Definition at line 85 of file Teuchos_CWrapperSupport.cpp.
1.7.6.1