We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Connection::hasError()
1 parent 3f63ac9 commit 8a73ba0Copy full SHA for 8a73ba0
README.md
@@ -156,6 +156,10 @@ if (rc != 0) {
156
}
157
```
158
159
+Note that some methods can return `rc < 0` without any error. For example, `wait`
160
+can return `-1` when timeout is exceeded. In order to differentiate between such
161
+situations, one can use method `Connection::hasError()`.
162
+
163
To reset connection after errors (clean up error message and connection status),
164
one can use `Connection::reset()`.
165
0 commit comments