19namespace Azure {
namespace Core {
145 : std::runtime_error(other.
Message),
182 static std::string GetRawResponseField(
183 std::unique_ptr<Azure::Core::Http::RawResponse>
const& rawResponse,
184 std::string fieldName);
189 static std::string GetRawResponseErrorMessage(
190 std::unique_ptr<Azure::Core::Http::RawResponse>
const& rawResponse);
An error while trying to send a request to Azure service.
Definition exception.hpp:57
Azure::Core::Http::HttpStatusCode StatusCode
The HTTP response code.
Definition exception.hpp:69
RequestFailedException & operator=(RequestFailedException &&)=delete
An instance of RequestFailedException class cannot be moved into another instance after creation.
RequestFailedException(const RequestFailedException &other)
Constructs a new RequestFailedException by copying from an existing one.
Definition exception.hpp:144
~RequestFailedException()=default
Destructs RequestFailedException.
std::string Message
The error message from the service returned in the HTTP response.
Definition exception.hpp:112
std::unique_ptr< Azure::Core::Http::RawResponse > RawResponse
The entire HTTP raw response.
Definition exception.hpp:63
std::string ErrorCode
The error code from service returned in the HTTP response.
Definition exception.hpp:99
RequestFailedException & operator=(const RequestFailedException &)=delete
An instance of RequestFailedException class cannot be assigned.
std::string RequestId
The request ID header (x-ms-request-id) from the HTTP response.
Definition exception.hpp:87
std::string ClientRequestId
The client request header (x-ms-client-request-id) from the HTTP response.
Definition exception.hpp:81
std::string ReasonPhrase
The HTTP reason phrase from the response.
Definition exception.hpp:75
RequestFailedException(RequestFailedException &&other)=default
Constructs a new RequestFailedException by moving in an existing one.
HTTP status code definition.
HttpStatusCode
Defines the possible HTTP status codes.
Definition http_status_code.hpp:18
Compute the hash value for the input binary data, using SHA256, SHA384 and SHA512.
Definition azure_assert.hpp:57
Define the HTTP raw response.