Broadcast C++ Toolkit
 All Classes Functions Variables Typedefs Enumerations Enumerator Pages
Error.h
1 #ifndef __ERROR_H__
2 #define __ERROR_H__
3 
4 #include <string>
5 #include "FdsfeApi.h"
6 
7 namespace FactSet {
8  namespace Datafeed {
9  struct ErrorImpl;
10  class FDSFE_API Error {
11  public:
14  enum ErrorCode {
15  // Any changes made to this enum should be duplicated in ../../cpp_toolkit_c_sharp_wrapper/Error.cs
16  // and ../../cpp_toolkit_c_wrapper/include/Error_C.h
33  FE_E_UNEXPECTED_UNSUBSCRIBE
34  };
35 
38  const static Error NoError;
39 
40 
45  Error();
46 
54  Error(ErrorCode code, const std::string &description);
55 
56  Error(const Error& other);
57 
58  Error& operator=(const Error& other);
59 
62  ~Error();
63 
66  ErrorCode code() const;
67 
70  const std::string& description() const;
71 
79  bool operator==(const Error &rhs) const;
80 
88  bool operator!=(const Error &rhs) const;
89  private:
90  ErrorImpl *m_impl;
91  };
92  } // namespace FactSet
93 } // namespace Datafeed
94 #endif
The user lacked the necessary permissions.
Definition: Error.h:30
ErrorCode
Set of possible error codes.
Definition: Error.h:14
A resource limit was reached.
Definition: Error.h:23
A required resource was not found.
Definition: Error.h:20
A required resource was exhausted.
Definition: Error.h:26
The request was invalid.
Definition: Error.h:25
The operation was invalid for the current version.
Definition: Error.h:28
There was no connection to the server.
Definition: Error.h:27
static const Error NoError
Error indicating that no error has occurred.
Definition: Error.h:38
Unexpected failure due to unknown reasons.
Definition: Error.h:18
A required resource was renamed.
Definition: Error.h:21
The operation timed out.
Definition: Error.h:31
The operation completed successfully and no error has occurred.
Definition: Error.h:17
Operation failed because the system is shutting down.
Definition: Error.h:29
The requested service was unavailable.
Definition: Error.h:19
An error occurred in the communication protocol.
Definition: Error.h:24
Definition: Error.h:10
The output of this operation already exists.
Definition: Error.h:22
An unexpected subscribe response was received.
Definition: Error.h:32