OnixS ICE iMpact Multicast Price Feed Handler C++ library  8.18.0
API documentation
Error Class Reference

#include <Error.h>

Public Member Functions

 Error (const std::string &source, ErrorCode code)
 
 Error (const std::string &source, ErrorCode code, const std::string &description)
 
 Error (const std::string &source, ErrorCode code, const std::string &description, FeedId feedId)
 
 Error (const Error &other)
 
virtual ~Error () throw ()
 
const Optional< FeedId > & feedId () const
 
ErrorCode code () const
 
const char * description () const
 
const char * source () const
 
virtual const char * what () const throw ()
 
std::string toString () const
 
void toString (std::string &) const
 
Erroroperator= (const Error &other)
 

Detailed Description

Definition at line 76 of file Error.h.

Constructor & Destructor Documentation

Error ( const std::string &  source,
ErrorCode  code 
)

Initializes instance with just a code.

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

Initializes instance with code and description.

Error ( const std::string &  source,
ErrorCode  code,
const std::string &  description,
FeedId  feedId 
)

Initializes instance with code, description and feed ID.

Error ( const Error other)

Initializes as clone of another error.

virtual ~Error ( )
throw (
)
virtual

Destruction interface.

Member Function Documentation

ErrorCode code ( ) const
inline

Code of error.

Definition at line 139 of file Error.h.

const char * description ( ) const
inline

Human readable description of error.

Definition at line 144 of file Error.h.

const Optional< FeedId > & feedId ( ) const
inline

Feed ID (if available).

Definition at line 134 of file Error.h.

Error& operator= ( const Error other)

Copies error attributes from another instance.

const char * source ( ) const
inline

Origin of the error.

Definition at line 149 of file Error.h.

std::string toString ( ) const
inline

String presentation of an error.

Definition at line 154 of file Error.h.

void toString ( std::string &  ) const

Appends presentation of an error to the string.

virtual const char* what ( ) const
throw (
)
virtual

Human readable description of error.


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