Skip to content

Latest commit

 

History

History
365 lines (190 loc) · 6.05 KB

errors.rst

File metadata and controls

365 lines (190 loc) · 6.05 KB

Error handling

In libuv errors are negative numbered constants. As a rule of thumb, whenever there is a status parameter, or an API functions returns an integer, a negative number will imply an error.

When a function which takes a callback returns an error, the callback will never be called.

Note

Implementation detail: on Unix error codes are the negated errno (or -errno), while on Windows they are defined by libuv to arbitrary negative numbers.

Error constants

API