Home
last modified time | relevance | path

Searched hist:"096 e7539236e67acdb0d82d963c1d3e0b7f3c931" (Results 1 – 2 of 2) sorted by relevance

/plugin/oauth/
H A DHttpTokenResponseException.php096e7539236e67acdb0d82d963c1d3e0b7f3c931 Wed Oct 30 23:43:26 UTC 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 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>

H A DHTTPClient.php096e7539236e67acdb0d82d963c1d3e0b7f3c931 Wed Oct 30 23:43:26 UTC 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 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>