/* * ApiException.h * * This is the exception being thrown in case the api call was not successful */ #ifndef ApiException_H_ #define ApiException_H_ #include #include #include #include namespace io { namespace swagger { namespace client { namespace api { class ApiException : public web::http::http_exception { public: ApiException( int errorCode , const utility::string_t& message , std::shared_ptr content = nullptr ); ApiException( int errorCode , const utility::string_t& message , std::map& headers , std::shared_ptr content = nullptr ); virtual ~ApiException(); std::map& getHeaders(); std::shared_ptr getContent() const; protected: std::shared_ptr m_Content; std::map m_Headers; }; } } } } #endif /* ApiBase_H_ */