Function what

Synopsis

#include <src/uvw/emitter.h>

const char * what() const noexcept

Description

Returns the error message for the given error code.

Leaks a few bytes of memory when you call it with an unknown error code.

Returns
The error message for the given error code.

Source

Lines 17-19 in src/uvw/emitter.cpp. Line 51 in src/uvw/emitter.h.

UVW_INLINE const char * ErrorEvent::what() const noexcept {
    return uv_strerror(ec);
}





Add Discussion as Guest

Log in