Delegate to RFE string ctor and move impl from header to src. (#3315)
* Removing the two param RFE ctor, there should be no callers * Remove the two param RFE ctor from the source file. * Fix-up unit test and add a changelog entry. * Remove test that uses the removed ctor. * Delegate to RFE string ctor and move impl from header to src.
This commit is contained in:
parent
7ae6d82a65
commit
031696179b
@ -75,7 +75,7 @@ namespace Azure { namespace Core {
|
||||
*
|
||||
* @param what The explanatory string.
|
||||
*/
|
||||
explicit RequestFailedException(std::string const& what) : std::runtime_error(what) {}
|
||||
explicit RequestFailedException(std::string const& what);
|
||||
|
||||
/**
|
||||
* @brief Constructs a new `%RequestFailedException` object with an HTTP raw response.
|
||||
|
||||
@ -15,9 +15,13 @@ using namespace Azure::Core::Http::_internal;
|
||||
|
||||
namespace Azure { namespace Core {
|
||||
|
||||
RequestFailedException::RequestFailedException(std::string const& what) : std::runtime_error(what)
|
||||
{
|
||||
}
|
||||
|
||||
RequestFailedException::RequestFailedException(
|
||||
std::unique_ptr<Azure::Core::Http::RawResponse>& rawResponse)
|
||||
: std::runtime_error("Received an HTTP unsuccessful status code.")
|
||||
: RequestFailedException("Received an HTTP unsuccessful status code.")
|
||||
{
|
||||
const auto& headers = rawResponse->GetHeaders();
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user