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 18 of file MooseException.h.

Constructor & Destructor Documentation

◆ MooseException()

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

Definition at line 24 of file MooseException.h.

24 : _message(message) {}
std::string _message

◆ ~MooseException()

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 33 of file MooseException.h.

33 {}

Member Function Documentation

◆ what()

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

Member Data Documentation

◆ _message

std::string MooseException::_message
protected

Definition at line 43 of file MooseException.h.

Referenced by what().


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