MADNESS  0.10.1
Public Member Functions | Private Attributes | Friends | List of all members
SafeMPI::Exception Class Reference

SafeMPI exception object. More...

#include <safempi.h>

Inheritance diagram for SafeMPI::Exception:
Inheritance graph
[legend]
Collaboration diagram for SafeMPI::Exception:
Collaboration graph
[legend]

Public Member Functions

 Exception (const Exception &other) throw ()
 
 Exception (const int mpi_error) throw ()
 
 Exception (const int mpi_error, const int nstatuses, const int *indices, MPI_Status *const statuses) noexcept
 
virtual ~Exception () throw ()
 
bool can_elaborate () const noexcept
 
const char * elaborate () const noexcept
 
Exceptionoperator= (const Exception &other)
 
virtual const char * what () const throw ()
 

Private Attributes

char mpi_error_string_ [MPI_MAX_ERROR_STRING]
 
std::string mpi_statuses_error_string_
 

Friends

std::ostream & operator<< (std::ostream &os, const Exception &e)
 

Detailed Description

SafeMPI exception object.

This exception is thrown whenever an MPI error occurs.

Constructor & Destructor Documentation

◆ Exception() [1/3]

SafeMPI::Exception::Exception ( const int  mpi_error)
throw (
)
inline

◆ Exception() [2/3]

SafeMPI::Exception::Exception ( const int  mpi_error,
const int  nstatuses,
const int *  indices,
MPI_Status *const  statuses 
)
inlinenoexcept

◆ Exception() [3/3]

SafeMPI::Exception::Exception ( const Exception other)
throw (
)
inline

◆ ~Exception()

virtual SafeMPI::Exception::~Exception ( )
throw (
)
inlinevirtual

Member Function Documentation

◆ can_elaborate()

bool SafeMPI::Exception::can_elaborate ( ) const
inlinenoexcept

◆ elaborate()

const char* SafeMPI::Exception::elaborate ( ) const
inlinenoexcept

◆ operator=()

Exception& SafeMPI::Exception::operator= ( const Exception other)
inline

◆ what()

virtual const char* SafeMPI::Exception::what ( ) const
throw (
)
inlinevirtual

References mpi_error_string_.

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
const Exception e 
)
friend

Member Data Documentation

◆ mpi_error_string_

char SafeMPI::Exception::mpi_error_string_[MPI_MAX_ERROR_STRING]
private

Referenced by Exception(), operator=(), and what().

◆ mpi_statuses_error_string_

std::string SafeMPI::Exception::mpi_statuses_error_string_
private

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