azure-core
Public Member Functions | List of all members
Azure::Core::Http::TransportException Class Referencefinal

An error while sending the HTTP request with the transport adapter.

#include <http.hpp>

Inheritance diagram for Azure::Core::Http::TransportException:
Azure::Core::RequestFailedException

Public Member Functions

 TransportException (std::string const &what)
 Constructs TransportException with a message string. More...
 
- Public Member Functions inherited from Azure::Core::RequestFailedException
 RequestFailedException (std::string const &what)
 Constructs a new RequestFailedException with a message string. More...
 
 RequestFailedException (std::unique_ptr< Azure::Core::Http::RawResponse > &rawResponse)
 Constructs a new RequestFailedException object with an HTTP raw response. More...
 
 RequestFailedException (const RequestFailedException &other)
 Constructs a new RequestFailedException by copying from an existing one. More...
 
 RequestFailedException (RequestFailedException &&other)=default
 Constructs a new RequestFailedException by moving in an existing one. More...
 
RequestFailedExceptionoperator= (const RequestFailedException &)=delete
 An instance of RequestFailedException class cannot be assigned. More...
 
RequestFailedExceptionoperator= (RequestFailedException &&)=delete
 An instance of RequestFailedException class cannot be moved into another instance after creation. More...
 
 ~RequestFailedException ()=default
 Destructs RequestFailedException. More...
 

Additional Inherited Members

- Public Attributes inherited from Azure::Core::RequestFailedException
std::unique_ptr< Azure::Core::Http::RawResponseRawResponse
 The entire HTTP raw response. More...
 
Azure::Core::Http::HttpStatusCode StatusCode = Azure::Core::Http::HttpStatusCode::None
 The HTTP response code. More...
 
std::string ReasonPhrase
 The HTTP reason phrase from the response. More...
 
std::string ClientRequestId
 The client request header (x-ms-client-request-id) from the HTTP response. More...
 
std::string RequestId
 The request ID header (x-ms-request-id) from the HTTP response. More...
 
std::string ErrorCode
 The error code from service returned in the HTTP response. More...
 
std::string Message
 The error message from the service returned in the HTTP response. More...
 

Constructor & Destructor Documentation

◆ TransportException()

Azure::Core::Http::TransportException::TransportException ( std::string const &  what)
inlineexplicit
Remarks
The transport policy will throw this error whenever the transport adapter fail to perform a request.
Parameters
whatThe explanatory string.

The documentation for this class was generated from the following file: