kamax-matrix / matrix-java-sdk

Matrix Java SDK
GNU Affero General Public License v3.0
21 stars 14 forks source link

Make the server error response Json object accessible in MatrixClientRequestException/MatrixErrorInfo #69

Open yyportne opened 6 years ago

yyportne commented 6 years ago

The MatrixErrorInfo class should make the server response Json object accessible (if available).

For example, when encountering an error because of rate-limiting, the response informs the client, when it may retry. This information is necessary for well behaving clients. See https://matrix.org/docs/spec/client_server/r0.4.0.html#rate-limiting