OGS
BaseLib::MPI::AnotherMPIRankThrew< BaseException > Class Template Reference

Detailed Description

template<typename BaseException>
requires std::derived_from<BaseException, std::exception> && ( // The used ctor excludes std::exception itself !std::same_as<BaseException, std::exception>)
class BaseLib::MPI::AnotherMPIRankThrew< BaseException >

Class indicating that another MPI rank threw an exception.

This class is derived from BaseException. Hence, it can be caught with

catch(BaseException const&)

. That makes it possible to handle both

BaseException

and

in the same way.

Definition at line 215 of file MPI.h.

#include <MPI.h>

Inheritance diagram for BaseLib::MPI::AnotherMPIRankThrew< BaseException >:
[legend]
Collaboration diagram for BaseLib::MPI::AnotherMPIRankThrew< BaseException >:
[legend]

Public Member Functions

 AnotherMPIRankThrew ()

Constructor & Destructor Documentation

◆ AnotherMPIRankThrew()

template<typename BaseException>
BaseLib::MPI::AnotherMPIRankThrew< BaseException >::AnotherMPIRankThrew ( )
inline

Definition at line 220 of file MPI.h.

221 : BaseException{"Another MPI rank threw an exception."}
222 {
223 }

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