2626
2727#include < nlohmann/json.hpp>
2828
29- #include " iceberg/iceberg_export .h"
29+ #include " iceberg/catalog/rest/iceberg_rest_catalog_export .h"
3030
3131namespace iceberg ::catalog::rest {
3232
@@ -35,7 +35,7 @@ using HttpHeaders = std::map<std::string, std::string>;
3535/* *
3636 * @brief Base exception for REST client errors.
3737 */
38- class ICEBERG_EXPORT RestException : public std::runtime_error {
38+ class ICEBERG_REST_CATALOG_EXPORT RestException : public std::runtime_error {
3939 public:
4040 explicit RestException (const std::string& message) : std::runtime_error(message) {}
4141};
@@ -46,7 +46,7 @@ class ICEBERG_EXPORT RestException : public std::runtime_error {
4646 * This corresponds to the generic `E` type in the Rust implementation,
4747 * which is deserialized from the error response body.
4848 */
49- class ICEBERG_EXPORT ServerErrorException : public RestException {
49+ class ICEBERG_REST_CATALOG_EXPORT ServerErrorException : public RestException {
5050 public:
5151 ServerErrorException (int status_code, std::string response_body,
5252 nlohmann::json error_payload)
@@ -70,7 +70,7 @@ class ICEBERG_EXPORT ServerErrorException : public RestException {
7070 *
7171 * This corresponds to the `Error::new(ErrorKind::Unexpected, ...)` part in Rust.
7272 */
73- class ICEBERG_EXPORT ResponseParseException : public RestException {
73+ class ICEBERG_REST_CATALOG_EXPORT ResponseParseException : public RestException {
7474 public:
7575 ResponseParseException (std::string message, std::string response_body)
7676 : RestException(std::move(message)), response_body_(std::move(response_body)) {}
@@ -81,7 +81,7 @@ class ICEBERG_EXPORT ResponseParseException : public RestException {
8181 std::string response_body_;
8282};
8383
84- class ICEBERG_EXPORT HttpClient {
84+ class ICEBERG_REST_CATALOG_EXPORT HttpClient {
8585 public:
8686 HttpClient (const std::string& base_uri, const HttpHeaders& common_headers);
8787 ~HttpClient ();
0 commit comments