uvco 0.1
|
#include <exception.h>
Public Member Functions | |
UvcoException (std::string message) noexcept | |
UvcoException (uv_status status, std::string_view where) noexcept | |
UvcoException & | operator= (const UvcoException &) noexcept=default |
UvcoException & | operator= (UvcoException &&) noexcept=default |
UvcoException (const UvcoException &) noexcept=default | |
UvcoException (UvcoException &&) noexcept=default | |
~UvcoException () noexcept override=default | |
const char * | what () const noexcept override |
Provide information about the error. | |
operator std::string () const | |
Like what() . | |
Public Attributes | |
std::string | message |
The error message. | |
std::optional< uv_status > | status |
An UvcoException
wraps a numeric libuv
status code as well as a message. The status code is automatically converted to a string, which can be obtained using what()
.
|
explicitnoexcept |
|
noexcept |
|
defaultnoexcept |
|
defaultnoexcept |
|
overridedefaultnoexcept |
|
defaultnoexcept |
|
defaultnoexcept |
|
overridenoexcept |
Provide information about the error.
std::string uvco::UvcoException::message |
The error message.
std::optional<uv_status> uvco::UvcoException::status |
The status. An UvcoException may not be caused by a libuv error, in which case status is nullopt
.