mirror of
https://github.com/tribufu/sdk-cpp
synced 2025-06-16 12:04:18 +00:00
Format c++ files on generation
This commit is contained in:
@ -19,39 +19,36 @@
|
||||
#ifndef TRIBUFU_API_ApiException_H_
|
||||
#define TRIBUFU_API_ApiException_H_
|
||||
|
||||
|
||||
|
||||
#include <cpprest/details/basic_types.h>
|
||||
#include <cpprest/http_msg.h>
|
||||
|
||||
#include <memory>
|
||||
#include <map>
|
||||
#include <memory>
|
||||
|
||||
namespace tribufu {
|
||||
namespace api {
|
||||
|
||||
class ApiException
|
||||
: public web::http::http_exception
|
||||
namespace tribufu
|
||||
{
|
||||
public:
|
||||
ApiException( int errorCode
|
||||
, const utility::string_t& message
|
||||
, std::shared_ptr<std::istream> content = nullptr );
|
||||
ApiException( int errorCode
|
||||
, const utility::string_t& message
|
||||
, std::map<utility::string_t, utility::string_t>& headers
|
||||
, std::shared_ptr<std::istream> content = nullptr );
|
||||
virtual ~ApiException();
|
||||
namespace api
|
||||
{
|
||||
|
||||
std::map<utility::string_t, utility::string_t>& getHeaders();
|
||||
std::shared_ptr<std::istream> getContent() const;
|
||||
class ApiException : public web::http::http_exception
|
||||
{
|
||||
public:
|
||||
ApiException(int errorCode, const utility::string_t &message,
|
||||
std::shared_ptr<std::istream> content = nullptr);
|
||||
ApiException(int errorCode, const utility::string_t &message,
|
||||
std::map<utility::string_t, utility::string_t> &headers,
|
||||
std::shared_ptr<std::istream> content = nullptr);
|
||||
virtual ~ApiException();
|
||||
|
||||
protected:
|
||||
std::shared_ptr<std::istream> m_Content;
|
||||
std::map<utility::string_t, utility::string_t> m_Headers;
|
||||
};
|
||||
std::map<utility::string_t, utility::string_t> &getHeaders();
|
||||
std::shared_ptr<std::istream> getContent() const;
|
||||
|
||||
}
|
||||
protected:
|
||||
std::shared_ptr<std::istream> m_Content;
|
||||
std::map<utility::string_t, utility::string_t> m_Headers;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_API_ApiBase_H_ */
|
||||
|
Reference in New Issue
Block a user