Miind
Public Member Functions | Protected Attributes | List of all members
MPILib::utilities::ParallelException Class Reference

#include <libs/MPILib/include/utilities/ParallelException.hpp>

Inheritance diagram for MPILib::utilities::ParallelException:
Inheritance graph
Collaboration diagram for MPILib::utilities::ParallelException:
Collaboration graph

Public Member Functions

 ParallelException (const char *message)
 
 ParallelException (const std::string &message)
 
virtual ~ParallelException () throw ()
 
virtual const char * what () const throw ()
 

Protected Attributes

std::string msg_
 

Detailed Description

Definition at line 28 of file ParallelException.hpp.

Constructor & Destructor Documentation

ParallelException::ParallelException ( const char *  message)
explicit

Constructor for C-style string error messages.

Parameters
messageC-style string error message. The string contents are copied upon construction Responsibility for deleting the char* lies with the caller.

Definition at line 27 of file ParallelException.cpp.

References MPILib::utilities::MPIProxy_::getRank(), MPILib::utilities::MPIProxy_::getSize(), MPILib::utilities::MPIProxy(), and MPILib::utilities::Exception::msg_.

ParallelException::ParallelException ( const std::string &  message)
explicit

Constructor for STL string class error messages.

Parameters
messageThe error message.

Definition at line 37 of file ParallelException.cpp.

References MPILib::utilities::MPIProxy_::getRank(), MPILib::utilities::MPIProxy_::getSize(), MPILib::utilities::MPIProxy(), and MPILib::utilities::Exception::msg_.

ParallelException::~ParallelException ( )
throw (
)
virtual

Destructor. Nothrow guarantee. Virtual to allow for subclassing.

Definition at line 47 of file ParallelException.cpp.

Member Function Documentation

const char * ParallelException::what ( ) const
throw (
)
virtual

Returns a pointer to the constant error message.

Returns
A pointer to a const char*. The underlying memory is in posession of the Exception object. Callers must not attempt to free the memory.

Reimplemented from MPILib::utilities::Exception.

Definition at line 50 of file ParallelException.cpp.

References MPILib::utilities::Exception::msg_.

Member Data Documentation

std::string MPILib::utilities::Exception::msg_
protectedinherited

Error message.

Definition at line 64 of file Exception.hpp.

Referenced by ParallelException(), what(), and MPILib::utilities::Exception::what().


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