Updated error descriptions.

This commit is contained in:
tastytea 2019-02-22 12:14:15 +01:00
parent e034dbc299
commit ade55f8f19
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
2 changed files with 20 additions and 22 deletions

View File

@ -79,16 +79,16 @@ g++ -std=c++14 -lmastodon-cpp example.cpp
## Error codes
| Code | Explanation |
| --------: |:---------------------------------|
| 0 | No error |
| 22 | Invalid argument |
| 78 | URL changed (HTTP 301 or 308) |
| 110 | Connection timed out |
| 111 | Connection refused |
| 132 | curlpp runtime error |
| 133 | curlpp logic error |
| 255 | Unknown error |
| Code | Explanation |
| --------: |:-------------------------------------------|
| 0 | No error |
| 22 | Invalid argument |
| 78 | URL changed (HTTP 301 or 308) |
| 110 | Connection timed out |
| 111 | Connection refused (check http_error_code) |
| 132 | curlpp runtime error |
| 133 | curlpp logic error |
| 255 | Unknown error |
If you use a debug build, you get more verbose error messages.

View File

@ -75,18 +75,16 @@ namespace Mastodon
* It appears that media attachements can not be base64 encoded.
*
* @section error Error codes
* mastodon-cpp will never use error codes below 11, except 0.
* | Code | Explanation |
* | --------: |:---------------------------------|
* | 0 | No error |
* | 11 | Invalid call |
* | 12 | Not implemented |
* | 13 | URL changed (HTTP 301 or 308) |
* | 14 | Cancelled by user |
* | 15 | Network error (curlpp exception) |
* | 16 | Timeout |
* | 100 - 999 | HTTP status codes |
* | 65535 | Unknown error |
* | Code | Explanation |
* | --------: |:-------------------------------------------|
* | 0 | No error |
* | 22 | Invalid argument |
* | 78 | URL changed (HTTP 301 or 308) |
* | 110 | Connection timed out |
* | 111 | Connection refused (check http_error_code) |
* | 132 | curlpp runtime error |
* | 133 | curlpp logic error |
* | 255 | Unknown error |
*
* @since before 0.11.0
*/