|
uvw
1.11.2
|
The ErrorEvent event. More...
#include <emitter.hpp>
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.
Definition at line 23 of file emitter.hpp.
|
inlinenoexcept |
Gets the underlying error code, that is an error constant of libuv.
Definition at line 67 of file emitter.hpp.
|
inlinenoexcept |
Returns the error name for the given error code.
Leaks a few bytes of memory when you call it with an unknown error code.
Definition at line 61 of file emitter.hpp.
|
inlineexplicitnoexcept |
Checks if the event contains a valid error code.
Definition at line 73 of file emitter.hpp.
|
inlinestaticnoexcept |
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. Definition at line 41 of file emitter.hpp.
|
inlinenoexcept |
Returns the error message for the given error code.
Leaks a few bytes of memory when you call it with an unknown error code.
Definition at line 52 of file emitter.hpp.
1.8.13