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
32  FE_E_UNEXPECTED_UNSUBSCRIBE
33  };
34 
37  const static Error NoError;
38 
39 
44  Error();
45 
53  Error(ErrorCode code, const std::string &description);
54 
55  Error(const Error& other);
56 
57  Error& operator=(const Error& other);
58 
61  ~Error();
62 
65  ErrorCode code() const;
66 
69  const std::string& description() const;
70 
78  bool operator==(const Error &rhs) const;
79 
87  bool operator!=(const Error &rhs) const;
88  private:
89  ErrorImpl *m_impl;
90  };
91  } // namespace FactSet
92 } // namespace Datafeed
93 #endif
The user lacked the necessary permissions.
Definition: Error.h:29
ErrorCode
Set of possible error codes.
Definition: Error.h:14
A resource limit was reached.
Definition: Error.h:22
A required resource was not found.
Definition: Error.h:19
A required resource was exhausted.
Definition: Error.h:25
The request was invalid.
Definition: Error.h:24
The operation was invalid for the current version.
Definition: Error.h:27
There was no connection to the server.
Definition: Error.h:26
static const Error NoError
Error indicating that no error has occurred.
Definition: Error.h:37
Unexpected failure due to unknown reasons.
Definition: Error.h:17
A required resource was renamed.
Definition: Error.h:20
The operation timed out.
Definition: Error.h:30
The operation completed successfully and no error has occured.
Definition: Error.h:16
Operation failed because the system is shutting down.
Definition: Error.h:28
The requested service was unavailable.
Definition: Error.h:18
An error occured in the communication protocol.
Definition: Error.h:23
Definition: Error.h:10
The output of this operation already exists.
Definition: Error.h:21
An unexpected subscribe response was received.
Definition: Error.h:31