History log of /plugin/oauth/HttpTokenResponseException.php (Results 1 – 2 of 2)
Revision Date Author Comments
# dd98db8c 02-Nov-2024 Naoto Kobayashi <naoto.kobayashi4c@gmail.com>

Add http response body to HttpTokenResponseException

Because response body is also helpful for error handler.

Signed-off-by: Naoto Kobayashi <naoto.kobayashi4c@gmail.com>


# 096e7539 30-Oct-2024 Naoto Kobayashi <naoto.kobayashi4c@gmail.com>

Add HttpTokenResponseException making error handling easy

Although http status code and http error message are helpful in error handling,
TokenResponseException, throwed by oauth\HTTPClient if an er

Add HttpTokenResponseException making error handling easy

Although http status code and http error message are helpful in error handling,
TokenResponseException, throwed by oauth\HTTPClient if an error occured during
the http request, does not have fields/methods which indicate them directly.

Solve it by adding HttpTokenResponseException which has indicators of http status
code and http error message, and throwing it instead of TokenResponseException.

Signed-off-by: Naoto Kobayashi <naoto.kobayashi4c@gmail.com>

show more ...