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 {
29  FE_E_TIMEOUT
30  };
31 
34  const static Error NoError;
35 
36 
41  Error();
42 
50  Error(ErrorCode code, const std::string &description);
51 
52  Error(const Error& other);
53 
54  Error& operator=(const Error& other);
55 
58  ~Error();
59 
62  ErrorCode code() const;
63 
66  const std::string& description() const;
67 
75  bool operator==(const Error &rhs) const;
76 
84  bool operator!=(const Error &rhs) const;
85  private:
86  ErrorImpl *m_impl;
87  };
88  } // namespace FactSet
89 } // namespace Datafeed
90 #endif
The user lacked the necessary permissions.
Definition: Error.h:28
ErrorCode
Set of possible error codes.
Definition: Error.h:14
A resource limit was reached.
Definition: Error.h:21
A required resource was not found.
Definition: Error.h:18
A required resource was exhausted.
Definition: Error.h:24
The request was invalid.
Definition: Error.h:23
The operation was invalid for the current version.
Definition: Error.h:26
There was no connection to the server.
Definition: Error.h:25
static const Error NoError
Error indicating that no error has occurred.
Definition: Error.h:34
Unexpected failure due to unknown reasons.
Definition: Error.h:16
A required resource was renamed.
Definition: Error.h:19
The operation completed successfully and no error has occured.
Definition: Error.h:15
Operation failed because the system is shutting down.
Definition: Error.h:27
The requested service was unavailable.
Definition: Error.h:17
An error occured in the communication protocol.
Definition: Error.h:22
Definition: Error.h:10
The output of this operation already exists.
Definition: Error.h:20