|
1 | 1 | // MIT License |
2 | 2 | // |
3 | | -// Copyright (c) 2020-2023 offa |
| 3 | +// Copyright (c) 2020-2024 offa |
4 | 4 | // Copyright (c) 2019 Adam Wegrzynek |
5 | 5 | // |
6 | 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy |
@@ -54,21 +54,33 @@ namespace influxdb |
54 | 54 |
|
55 | 55 |
|
56 | 56 | /// \deprecated Use InfluxDBException instead - will be removed in v0.8.0 |
57 | | - class [[deprecated("Use InfluxDBException instead - will be removed in v0.8.0")]] NonExistentDatabase : public InfluxDBException{ |
58 | | - public : |
59 | | - NonExistentDatabase(const std::string& source, const std::string& message) : InfluxDBException("influx-cxx [" + source + "]: " + message){} |
| 57 | + class [[deprecated("Use InfluxDBException instead - will be removed in v0.8.0")]] NonExistentDatabase : public InfluxDBException |
| 58 | + { |
| 59 | + public: |
| 60 | + NonExistentDatabase(const std::string& source, const std::string& message) |
| 61 | + : InfluxDBException("influx-cxx [" + source + "]: " + message) |
| 62 | + { |
| 63 | + } |
60 | 64 | }; |
61 | 65 |
|
62 | 66 | /// \deprecated Use InfluxDBException instead - will be removed in v0.8.0 |
63 | | - class [[deprecated("Use InfluxDBException instead - will be removed in v0.8.0")]] BadRequest : public InfluxDBException{ |
64 | | - public : |
65 | | - BadRequest(const std::string& source, const std::string& message) : InfluxDBException("influx-cxx [" + source + "]: " + message){} |
| 67 | + class [[deprecated("Use InfluxDBException instead - will be removed in v0.8.0")]] BadRequest : public InfluxDBException |
| 68 | + { |
| 69 | + public: |
| 70 | + BadRequest(const std::string& source, const std::string& message) |
| 71 | + : InfluxDBException("influx-cxx [" + source + "]: " + message) |
| 72 | + { |
| 73 | + } |
66 | 74 | }; |
67 | 75 |
|
68 | 76 | /// \deprecated Use InfluxDBException instead - will be removed in v0.8.0 |
69 | | - class [[deprecated("Use InfluxDBException instead - will be removed in v0.8.0")]] ServerError : public InfluxDBException{ |
70 | | - public : |
71 | | - ServerError(const std::string& source, const std::string& message) : InfluxDBException("influx-cxx [" + source + "]: " + message){} |
| 77 | + class [[deprecated("Use InfluxDBException instead - will be removed in v0.8.0")]] ServerError : public InfluxDBException |
| 78 | + { |
| 79 | + public: |
| 80 | + ServerError(const std::string& source, const std::string& message) |
| 81 | + : InfluxDBException("influx-cxx [" + source + "]: " + message) |
| 82 | + { |
| 83 | + } |
72 | 84 | }; |
73 | 85 |
|
74 | 86 | /// \deprecated Use InfluxDBException instead - will be removed in v0.8.0 |
|
0 commit comments