Provides a way for users to bail out of the current solve. More...
#include <MooseException.h>
Public Member Functions | |
MooseException (std::string message) | |
MooseException (const MooseException &)=default | |
Set an explicit default constructor to avoid the variadic template constructor below catch the copy construction case. More... | |
template<typename... Args> | |
MooseException (Args &&... args) | |
~MooseException () throw () | |
For some reason, on GCC 4.6.3, I get 'error: looser throw specifier' when deriving from std::exception unless I declare that the destructor won't throw by adding the throw() specification. More... | |
virtual const char * | what () const throw () |
Get out the error message. More... | |
Protected Attributes | |
std::string | _message |
Provides a way for users to bail out of the current solve.
Definition at line 20 of file MooseException.h.
|
inline |
|
default |
Set an explicit default constructor to avoid the variadic template constructor below catch the copy construction case.
|
inlineexplicit |
args | List of arguments that gets stringified and concatenated to form the message to display |
Definition at line 39 of file MooseException.h.
|
inline |
For some reason, on GCC 4.6.3, I get 'error: looser throw specifier' when deriving from std::exception unless I declare that the destructor won't throw by adding the throw() specification.
Clang doesn't seem to care about this line of code.
Definition at line 53 of file MooseException.h.
|
inlinevirtual |
Get out the error message.
Satisfies the interface of std::exception
Definition at line 60 of file MooseException.h.
Referenced by AdvancedExtruderGenerator::AdvancedExtruderGenerator(), ThreadedElementLoop< ConstElemPointerRange >::caughtMooseException(), ComputeThreadedGeneralUserObjectsThread::caughtMooseException(), ThreadedNodeLoop< ConstBndNodeRange, ConstBndNodeRange::const_iterator >::caughtMooseException(), ThreadedFaceLoop< RangeType >::caughtMooseException(), FEProblemBase::computeBounds(), NonlinearSystemBase::computeDamping(), AuxiliarySystem::computeElementalVarsHelper(), AuxiliarySystem::computeMortarNodalVars(), MooseMeshUtils::extraElemIntegerSwapParametersProcessor(), FillBetweenSidesetsGenerator::generate(), FillBetweenCurvesGenerator::generate(), XYMeshLineCutter::generate(), FillBetweenPointVectorsTools::isBoundaryOpenSingleSegment(), FillBetweenPointVectorsTools::isCurveOpenSingleSegment(), ComputeMortarFunctor::operator()(), and DisplacedProblem::updateMesh().
|
protected |
Definition at line 63 of file MooseException.h.
Referenced by MooseException(), and what().