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
30  FE_E_TIMEOUT
31  };
32 
35  const static Error NoError;
36 
37 
42  Error();
43 
51  Error(ErrorCode code, const std::string &description);
52 
53  Error(const Error& other);
54 
55  Error& operator=(const Error& other);
56 
59  ~Error();
60 
63  ErrorCode code() const;
64 
67  const std::string& description() const;
68 
76  bool operator==(const Error &rhs) const;
77 
85  bool operator!=(const Error &rhs) const;
86  private:
87  ErrorImpl *m_impl;
88  };
89  } // namespace FactSet
90 } // namespace Datafeed
91 #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:35
Unexpected failure due to unknown reasons.
Definition: Error.h:17
A required resource was renamed.
Definition: Error.h:20
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