|
AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
|
RAII helper that converts SLIC aborts into a C++ exception. More...
#include </home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/main/src/axom/slic/interface/slic.hpp>
Public Member Functions | |
| ScopedAbortToThrow () | |
| ScopedAbortToThrow (const ScopedAbortToThrow &)=delete | |
| ScopedAbortToThrow & | operator= (const ScopedAbortToThrow &)=delete |
| ~ScopedAbortToThrow () | |
RAII helper that converts SLIC aborts into a C++ exception.
The previous abort function and abort-on-error state are restored when this object goes out of scope.
One use of this is for unit tests that want to validate SLIC_ERROR/SLIC_ASSERT behavior without using death tests.
|
inline |
References axom::slic::enableAbortOnError(), and axom::slic::setAbortFunction().
|
delete |
|
inline |
|
delete |