uvw
2.11.0
|
The ErrorEvent event. More...
#include <emitter.h>
Public Member Functions | |
const char * | what () const noexcept |
Returns the error message for the given error code. More... | |
const char * | name () const noexcept |
Returns the error name for the given error code. More... | |
int | code () const noexcept |
Gets the underlying error code, that is an error constant of libuv . More... | |
operator bool () const noexcept | |
Checks if the event contains a valid error code. More... | |
Static Public Member Functions | |
static int | translate (int sys) noexcept |
Returns the libuv error code equivalent to the given platform dependent error code. More... | |
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. |
libuv
error code equivalent to the given 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.