mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-05-12 20:50:55 +00:00
63 lines
1.6 KiB
C++
63 lines
1.6 KiB
C++
/**
|
|
* Swagger Petstore
|
|
* This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
|
|
*
|
|
* OpenAPI spec version: 1.0.0
|
|
* Contact: apiteam@swagger.io
|
|
*
|
|
* NOTE: This class is auto generated by the swagger code generator 3.0.0-SNAPSHOT.
|
|
* https://github.com/swagger-api/swagger-codegen.git
|
|
* Do not edit the class manually.
|
|
*/
|
|
|
|
/*
|
|
* ApiException.h
|
|
*
|
|
* This is the exception being thrown in case the api call was not successful
|
|
*/
|
|
|
|
#ifndef IO_SWAGGER_CLIENT_API_ApiException_H_
|
|
#define IO_SWAGGER_CLIENT_API_ApiException_H_
|
|
|
|
|
|
|
|
#include <memory>
|
|
#include <map>
|
|
|
|
#include <cpprest/details/basic_types.h>
|
|
#include <cpprest/http_msg.h>
|
|
|
|
|
|
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<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();
|
|
|
|
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 /* IO_SWAGGER_CLIENT_API_ApiBase_H_ */
|