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 ## Error codes
| Code | Explanation | | Code | Explanation |
| --------: |:---------------------------------| | --------: |:-------------------------------------------|
| 0 | No error | | 0 | No error |
| 22 | Invalid argument | | 22 | Invalid argument |
| 78 | URL changed (HTTP 301 or 308) | | 78 | URL changed (HTTP 301 or 308) |
| 110 | Connection timed out | | 110 | Connection timed out |
| 111 | Connection refused | | 111 | Connection refused (check http_error_code) |
| 132 | curlpp runtime error | | 132 | curlpp runtime error |
| 133 | curlpp logic error | | 133 | curlpp logic error |
| 255 | Unknown error | | 255 | Unknown error |
If you use a debug build, you get more verbose error messages. 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. * It appears that media attachements can not be base64 encoded.
* *
* @section error Error codes * @section error Error codes
* mastodon-cpp will never use error codes below 11, except 0. * | Code | Explanation |
* | Code | Explanation | * | --------: |:-------------------------------------------|
* | --------: |:---------------------------------| * | 0 | No error |
* | 0 | No error | * | 22 | Invalid argument |
* | 11 | Invalid call | * | 78 | URL changed (HTTP 301 or 308) |
* | 12 | Not implemented | * | 110 | Connection timed out |
* | 13 | URL changed (HTTP 301 or 308) | * | 111 | Connection refused (check http_error_code) |
* | 14 | Cancelled by user | * | 132 | curlpp runtime error |
* | 15 | Network error (curlpp exception) | * | 133 | curlpp logic error |
* | 16 | Timeout | * | 255 | Unknown error |
* | 100 - 999 | HTTP status codes |
* | 65535 | Unknown error |
* *
* @since before 0.11.0 * @since before 0.11.0
*/ */