From b163d078fcb3e40ad3f047f42326e9267bc4da50 Mon Sep 17 00:00:00 2001 From: gdamore Date: Mon, 13 Jan 2025 00:34:40 +0000 Subject: deploy: 1b1f4609c6dad724b88dfb069b2260341e582906 --- ref/api/errors.html | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'ref/api/errors.html') diff --git a/ref/api/errors.html b/ref/api/errors.html index f3834e8f..766ab1f7 100644 --- a/ref/api/errors.html +++ b/ref/api/errors.html @@ -221,15 +221,25 @@

Errors

+
typedef enum ... nng_err;
+

Many NNG functions can fail for a variety of reasons. These functions tend to return either zero on success, or a non-zero error code to indicate failure. 1

-

All these error codes are int.

+

All these error codes are nng_err.

+
+

+ + note +

+

Many APIs are still using int, but the nng_err enumeration can be used +instead, and will help with debugging.

+

Not every possible error code is defined here, as sometimes an underlying system or library error code is “wrapped”.

Human Readable Error Message

-
const char *nng_strerror(int err);
+
const char *nng_strerror(nng_err err);
 

The nng_strerror returns the human-readable description of the given error in err.

-- cgit v1.2.3-70-g09d2