|
KaMPIng 0.2.0
Flexible and (near) zero-overhead C++ bindings for MPI
|
The exception type used when an MPI call did not return MPI_SUCCESS.
More...
#include <error_handling.hpp>


Public Member Functions | |
| MpiErrorException (std::string message, int mpi_error_code) | |
| Constructs the exception. | |
| char const * | what () const noexcept final |
| Gets a description of this exception. | |
| int | mpi_error_code () const |
| Gets the error code returned by the mpi call. | |
| int | mpi_error_class () const |
| Gets the error class corresponding to the error code. | |
The exception type used when an MPI call did not return MPI_SUCCESS.
When using this with THROWING_KAMPING_ASSERT you should call it like this: THROWING_KAMPING_ASSERT_SPECIFIED(err == MPI_SUCCESS, "<MPI function that failed> failed", MpiErrorException, err);
|
inline |
Constructs the exception.
| message | A custom error message. |
| mpi_error_code | The error code returned by the MPI call. |
|
inline |
Gets the error class corresponding to the error code.
|
inline |
Gets the error code returned by the mpi call.
Gets a description of this exception.