www.mooseframework.org
Public Member Functions | Protected Attributes | List of all members
MooseException Class Reference

Provides a way for users to bail out of the current solve. More...

#include <MooseException.h>

Inheritance diagram for MooseException:
[legend]

Public Member Functions

 MooseException (std::string message)
 
 ~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
 

Detailed Description

Provides a way for users to bail out of the current solve.

Definition at line 23 of file MooseException.h.

Constructor & Destructor Documentation

MooseException::MooseException ( std::string  message)
inline
Parameters
messageThe message to display

Definition at line 29 of file MooseException.h.

29 : _message(message) {}
std::string _message
MooseException::~MooseException ( )
throw (
)
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 38 of file MooseException.h.

38 {}

Member Function Documentation

virtual const char* MooseException::what ( ) const
throw (
)
inlinevirtual

Get out the error message.

Satisfies the interface of std::exception

Definition at line 45 of file MooseException.h.

Referenced by ThreadedElementLoop< RangeType >::caughtMooseException(), ThreadedNodeLoop< ConstBndNodeRange, ConstBndNodeRange::const_iterator >::caughtMooseException(), and NonlinearSystemBase::computeDamping().

45 { return _message.c_str(); }
std::string _message

Member Data Documentation

std::string MooseException::_message
protected

Definition at line 48 of file MooseException.h.

Referenced by what().


The documentation for this class was generated from the following file: