You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
1.4 KiB

2 years ago
  1. /**
  2. * Seaweedfs Master Server API
  3. * The Seaweedfs Master Server API allows you to store blobs
  4. *
  5. * The version of the OpenAPI document: 3.43.0
  6. *
  7. * NOTE: This class is auto generated by OpenAPI-Generator 6.4.0.
  8. * https://openapi-generator.tech
  9. * Do not edit the class manually.
  10. */
  11. /*
  12. * ApiException.h
  13. *
  14. * This is the exception being thrown in case the api call was not successful
  15. */
  16. #ifndef ORG_OPENAPITOOLS_CLIENT_API_ApiException_H_
  17. #define ORG_OPENAPITOOLS_CLIENT_API_ApiException_H_
  18. #include <cpprest/details/basic_types.h>
  19. #include <cpprest/http_msg.h>
  20. #include <memory>
  21. #include <map>
  22. namespace org {
  23. namespace openapitools {
  24. namespace client {
  25. namespace api {
  26. class ApiException
  27. : public web::http::http_exception
  28. {
  29. public:
  30. ApiException( int errorCode
  31. , const utility::string_t& message
  32. , std::shared_ptr<std::istream> content = nullptr );
  33. ApiException( int errorCode
  34. , const utility::string_t& message
  35. , std::map<utility::string_t, utility::string_t>& headers
  36. , std::shared_ptr<std::istream> content = nullptr );
  37. virtual ~ApiException();
  38. std::map<utility::string_t, utility::string_t>& getHeaders();
  39. std::shared_ptr<std::istream> getContent() const;
  40. protected:
  41. std::shared_ptr<std::istream> m_Content;
  42. std::map<utility::string_t, utility::string_t> m_Headers;
  43. };
  44. }
  45. }
  46. }
  47. }
  48. #endif /* ORG_OPENAPITOOLS_CLIENT_API_ApiBase_H_ */