Broadcast C++ Toolkit
|
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) | |
Error & | operator= (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. | |
Set of possible error codes.
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.
code | The Error::ErrorCode of the error |
description | The text description of the error |
bool FactSet::Datafeed::Error::operator!= | ( | const Error & | rhs | ) | const |
Not equals operator override.
rhs | The right hand side of the != 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.
rhs | The right hand side of the == operator. |