|
MXL : Media eXchange Layer
MXL
|
Custom exception type used in the fabrics library. More...
#include <Exception.hpp>


Public Member Functions | |
| Exception (std::string msg, mxlStatus status) | |
| mxlStatus | status () const noexcept |
| Return the mxlStatus status code that describes the condition that led to the exception being thrown. | |
| char const * | what () const noexcept override |
| Implements std::exception, returns a descriptive string about the error. | |
Static Public Member Functions | |
| template<typename... T> | |
| static Exception | exists (fmt::format_string< T... > fmt, T &&... args) |
| Make an MXL_ERR_EXISTS exception. | |
| template<typename... T> | |
| static Exception | internal (fmt::format_string< T... > fmt, T &&... args) |
| Make an MXL_ERR_INTERNAL exception. | |
| template<typename... T> | |
| static Exception | interrupted (fmt::format_string< T... > fmt, T &&... args) |
| Make an MXL_ERR_INTERRUPTED exception. | |
| template<typename... T> | |
| static Exception | invalidArgument (fmt::format_string< T... > fmt, T &&... args) |
| Make an MXL_ERR_INVALID_ARG exception. | |
| template<typename... T> | |
| static Exception | invalidState (fmt::format_string< T... > fmt, T &&... args) |
| Make an MXL_ERR_INVALID_STATE exception. | |
| template<typename... T> | |
| static Exception | make (mxlStatus status, fmt::format_string< T... > fmt, T &&... args) |
| Make any type of exception. | |
| template<typename... T> | |
| static Exception | noFabric (fmt::format_string< T... > fmt, T &&... args) |
| template<typename... T> | |
| static Exception | notFound (fmt::format_string< T... > fmt, T &&... args) |
| Make an MXL_ERR_NOT_FOUND exception. | |
| template<typename... T> | |
| static Exception | unsupportedOperation (fmt::format_string< T... > fmt, T &&... args) |
Private Attributes | |
| std::string | _msg |
| mxlStatus | _status |
Custom exception type used in the fabrics library.
Used to propagate information about error conditions to the api surface by carrying a status code.
Definition at line 27 of file Exception.hpp.
| mxl::lib::fabrics::ofi::Exception::Exception | ( | std::string | msg, |
| mxlStatus | status ) |
Definition at line 11 of file Exception.cpp.
|
inlinestatic |
Make an MXL_ERR_EXISTS exception.
Definition at line 67 of file Exception.hpp.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Make any type of exception.
Definition at line 35 of file Exception.hpp.
|
inlinestatic |
Definition at line 95 of file Exception.hpp.
|
inlinestatic |
|
nodiscardnoexcept |
Return the mxlStatus status code that describes the condition that led to the exception being thrown.
Definition at line 16 of file Exception.cpp.
|
inlinestatic |
Definition at line 89 of file Exception.hpp.
|
nodiscardoverridenoexcept |
Implements std::exception, returns a descriptive string about the error.
Definition at line 21 of file Exception.cpp.
|
private |
Definition at line 112 of file Exception.hpp.
|
private |
Definition at line 113 of file Exception.hpp.