uvw 2.12.1
|
The ErrorEvent event. More...
#include <emitter.h>
Public Member Functions | |
const char * | what () const noexcept |
Returns the error message for the given error code. | |
const char * | name () const noexcept |
Returns the error name for the given error code. | |
int | code () const noexcept |
Gets the underlying error code, that is an error constant of libuv. | |
operator bool () const noexcept | |
Checks if the event contains a valid error code. |
Static Public Member Functions | |
static int | translate (int sys) noexcept |
Returns the libuv error code equivalent to the given platform dependent error code. |
The ErrorEvent event.
Custom wrapper around error constants of libuv.
|
noexcept |
Gets the underlying error code, that is an error constant of libuv.
|
noexcept |
Returns the error name for the given error code.
Leaks a few bytes of memory when you call it with an unknown error code.
|
explicitnoexcept |
Checks if the event contains a valid error code.
|
staticnoexcept |
Returns the libuv error code equivalent to the given platform dependent error code.
It returns:
If sys is already a libuv error code, it is simply returned.
sys | A platform dependent error code. |
|
noexcept |
Returns the error message for the given error code.
Leaks a few bytes of memory when you call it with an unknown error code.