Go to the documentation of this file.
19 namespace 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);
std::string Message
The error message from the service returned in the HTTP response.
Definition: exception.hpp:112
RequestFailedException(std::string const &what)
Constructs a new RequestFailedException with a message string.
Definition: exception.cpp:18
std::string ErrorCode
The error code from service returned in the HTTP response.
Definition: exception.hpp:99
Azure::Core::Http::HttpStatusCode StatusCode
The HTTP response code.
Definition: exception.hpp:69
~RequestFailedException()=default
Destructs RequestFailedException.
Define the HTTP raw response.
HTTP status code definition.
RequestFailedException(const RequestFailedException &other)
Constructs a new RequestFailedException by copying from an existing one.
Definition: exception.hpp:144
RequestFailedException & operator=(const RequestFailedException &)=delete
An instance of RequestFailedException class cannot be assigned.
std::string ClientRequestId
The client request header (x-ms-client-request-id) from the HTTP response.
Definition: exception.hpp:81
Azure SDK abstractions.
Definition: azure_assert.hpp:55
RequestFailedException & operator=(RequestFailedException &&)=delete
An instance of RequestFailedException class cannot be moved into another instance after creation.
An error while trying to send a request to Azure service.
Definition: exception.hpp:57
std::unique_ptr< Azure::Core::Http::RawResponse > RawResponse
The entire HTTP raw response.
Definition: exception.hpp:63
@ None
No HTTP status code.
RequestFailedException(RequestFailedException &&other)=default
Constructs a new RequestFailedException by moving in an existing one.
std::string RequestId
The request ID header (x-ms-request-id) from the HTTP response.
Definition: exception.hpp:87
HttpStatusCode
Defines the possible HTTP status codes.
Definition: http_status_code.hpp:18
std::string ReasonPhrase
The HTTP reason phrase from the response.
Definition: exception.hpp:75