SDK  2.1.4 [async]
CloudBackend Software Development Kit - SDK API for C++
Error.h
1 #ifndef CBE__delegate__Error_h__
2 #define CBE__delegate__Error_h__
3 
4 #include "cbe/Types.h"
5 #include <string>
6 
7 namespace cbe
8 {
9  namespace delegate
10  {
14  class Error {
15  public:
25  std::string reason{};
29  std::string message{};
30 
36  explicit operator bool() const;
37 
39  Error();
40 
42  std::string&& reason,
43  std::string&& message);
45 
49  friend std::ostream& operator<<(std::ostream& os, const Error& error);
50  }; // class LogInDelegate::Error
51  }
52 }
53 #endif
Definition: Error.h:14
std::string reason
Definition: Error.h:25
ErrorCode errorCode
Definition: Error.h:21
friend std::ostream & operator<<(std::ostream &os, const Error &error)
std::string message
Definition: Error.h:29
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