DNNL exception class. More...
#include <dnnl.hpp>
Inherits exception.
Public Member Functions | |
error (dnnl_status_t status, const char *message) | |
Constructs an instance of an exception class. More... | |
const char * | what () const noexcept override |
Returns the explanatory string. | |
Static Public Member Functions | |
static void | wrap_c_api (dnnl_status_t status, const char *message) |
A convenience function for wrapping calls to C API functions. More... | |
DNNL exception class.
This class captures the status returned by a failed C API function and the error message from the call site.
|
inline |
Constructs an instance of an exception class.
status | The error status returned by a C API function. |
message | The error message. |
|
inlinestatic |
A convenience function for wrapping calls to C API functions.
Checks the return status and throws an dnnl::error in case of failure.
status | The error status returned by a C API function. |
message | The error message. |