|
kaycxx-http
HTTP client library
|
Exception thrown when a server responds with a non-success status code. More...
#include <kaycxx/http/response_error.hpp>


Public Member Functions | |
| response_error (std::string message, buffered_response response) | |
| Creates an HTTP response error. | |
| ~response_error () override | |
| Destroys the HTTP response error. | |
| const buffered_response & | response () const &noexcept |
| Returns the HTTP response which caused this error. | |
| buffered_response | response () &&noexcept |
| Moves the HTTP response out of an expiring response error. | |
| Public Member Functions inherited from kaycxx::http::error | |
| error (std::string message) | |
| Creates an HTTP client error. | |
| ~error () override | |
| Destroys the HTTP client error. | |
Exception thrown when a server responds with a non-success status code.
| kaycxx::http::response_error::response_error | ( | std::string | message, |
| buffered_response | response ) |
Creates an HTTP response error.
| message | Error message. |
| response | HTTP response returned by the server. |
|
nodiscardnoexcept |
Moves the HTTP response out of an expiring response error.
|
nodiscardnoexcept |
Returns the HTTP response which caused this error.
The returned reference remains valid until this exception is destroyed, moved from or assigned a new value.