Broadcast C++ Toolkit
 All Classes Functions Variables Typedefs Enumerations Enumerator Pages
FactSet::Datafeed::Error Class Reference

Public Types

enum  ErrorCode {
  FE_NO_ERROR, FE_E_UNKNOWN, FE_E_NO_SERV, FE_E_NOT_FOUND,
  FE_E_RENAME, FE_E_EXISTS, FE_E_LIMIT, FE_E_PROTOCOL,
  FE_E_INVAL, FE_E_RESOURCE, FE_E_NO_CONN, FE_E_VERSION,
  FE_E_SHUTDOWN, FE_E_ACCESS, FE_E_TIMEOUT, FE_E_UNEXPECTED_SUBSCRIBE,
  FE_E_UNEXPECTED_UNSUBSCRIBE
}
 Set of possible error codes. More...
 

Public Member Functions

 Error ()
 Constructor. More...
 
 Error (ErrorCode code, const std::string &description)
 Constructor. More...
 
 Error (const Error &other)
 
Erroroperator= (const Error &other)
 
 ~Error ()
 Destructor.
 
ErrorCode code () const
 Gets the Error::ErrorCode of the Error.
 
const std::string & description () const
 Gets the text description of the Error.
 
bool operator== (const Error &rhs) const
 Equals operator override. More...
 
bool operator!= (const Error &rhs) const
 Not equals operator override. More...
 

Static Public Attributes

static const Error NoError
 Error indicating that no error has occurred.
 

Member Enumeration Documentation

Set of possible error codes.

Enumerator
FE_NO_ERROR 

The operation completed successfully and no error has occured.

FE_E_UNKNOWN 

Unexpected failure due to unknown reasons.

FE_E_NO_SERV 

The requested service was unavailable.

FE_E_NOT_FOUND 

A required resource was not found.

FE_E_RENAME 

A required resource was renamed.

FE_E_EXISTS 

The output of this operation already exists.

FE_E_LIMIT 

A resource limit was reached.

FE_E_PROTOCOL 

An error occured in the communication protocol.

FE_E_INVAL 

The request was invalid.

FE_E_RESOURCE 

A required resource was exhausted.

FE_E_NO_CONN 

There was no connection to the server.

FE_E_VERSION 

The operation was invalid for the current version.

FE_E_SHUTDOWN 

Operation failed because the system is shutting down.

FE_E_ACCESS 

The user lacked the necessary permissions.

FE_E_TIMEOUT 

The operation timed out.

FE_E_UNEXPECTED_SUBSCRIBE 

An unexpected subscribe response was received.

FE_E_UNEXPECTED_UNSUBSCRIBE 

An unexpected unsubscribe response was received.

Constructor & Destructor Documentation

FactSet::Datafeed::Error::Error ( )

Constructor.

Constructs a new error with error code Error::FE_NO_ERROR and an empty string for the description.

FactSet::Datafeed::Error::Error ( ErrorCode  code,
const std::string &  description 
)

Constructor.

Constructs a new error with the given error code and description.

Parameters
codeThe Error::ErrorCode of the error
descriptionThe text description of the error

Member Function Documentation

bool FactSet::Datafeed::Error::operator!= ( const Error rhs) const

Not equals operator override.

Parameters
rhsThe right hand side of the != operator.
Returns
True if this Error is not equal to the second Error.
See Also
operator==()
bool FactSet::Datafeed::Error::operator== ( const Error rhs) const

Equals operator override.

Errors are considered equal if they have the same Error::ErrorCode and description.

Parameters
rhsThe right hand side of the == operator.
Returns
True if this Error is equal to the second Error.

The documentation for this class was generated from the following file: