SDK  2.1.4 [async]
CloudBackend Software Development Kit - SDK API for C++
QueryError.h
1 #ifndef CBE__delegate__QueryError_h__
2 #define CBE__delegate__QueryError_h__
3 
4 #include "cbe/Filter.h"
5 #include "cbe/Types.h"
6 
7 #include "cbe/delegate/Error.h"
8 
9 
10 #include <iosfwd>
11 
12 namespace cbe {
13  namespace delegate {
14 
15 using Error = delegate::Error;
20 class QueryError : public Error {
21 public:
22  QueryError();
24  std::string&& reason,
25  std::string&& message);
26  QueryError(Filter&& filter,
28  std::string&& reason,
29  std::string&& message);
30 
31  bool hasFilter() const;
32  const Filter& getFilter() const;
33 
34  friend std::ostream& operator<<(std::ostream& os,
35  const QueryError& error);
36  private:
37  bool hasFilter_{}; // false
38  Filter filter{};
39 }; // class QueryError
40 
41  } // namespace delegate
42 } // namespace cbe
43 
44 
45 #endif // #ifndef CBE__delegate__QueryError_h__
Use to select Item that meets specific criterias when doing a query.
Definition: Filter.h:40
Definition: Error.h:14
std::string reason
Definition: Error.h:25
ErrorCode errorCode
Definition: Error.h:21
std::string message
Definition: Error.h:29
Definition: QueryError.h:20
Root namespace for the CloudBackend SDK API.
Definition: Account.h:22
std::uint32_t ErrorCode
Mimics the general error code encoding in the www.
Definition: Types.h:142