Add M_NOT_JSON to MatrixAPIError

This commit is contained in:
Gergely Polonkai 2016-01-13 12:15:29 +01:00
parent ea7d9aaec4
commit 7d40b63896
2 changed files with 3 additions and 0 deletions

View File

@ -48,6 +48,8 @@
* @MATRIX_API_ERROR_UNKNOWN: an error unknown to the Matrix server
* @MATRIX_API_ERROR_UNKNOWN_TOKEN: the token provided is not known
* for the homeserver
* @MATRIX_API_ERROR_NOT_JSON: illegal request, the content is not
* valid JSON
* @MATRIX_API_ERROR_UNSPECIFIED: no error code was sent by the
* homeserver
* @MATRIX_API_ERROR_UNKNOWN_ERROR: an error unknown to this library

View File

@ -38,6 +38,7 @@ typedef enum {
MATRIX_API_ERROR_FORBIDDEN,
MATRIX_API_ERROR_UNKNOWN,
MATRIX_API_ERROR_UNKNOWN_TOKEN,
MATRIX_API_ERROR_NOT_JSON,
/* Allow for a lot of Matrix.org defined codes
Do not define error codes after this! */