Skip to content

Latest commit

 

History

History
388 lines (202 loc) · 6.4 KB

errors.rst

File metadata and controls

388 lines (202 loc) · 6.4 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