29 namespace OnixS {
namespace ICE {
namespace iMpact {
namespace MarketData {
69 static const char* toString(
Enum value);
76 class ONIXS_ICEMDH_EXPORT
Error :
public std::exception
80 Error(
const std::string& source, ErrorCode code);
83 Error(
const std::string& source, ErrorCode code,
const std::string& description);
86 Error(
const std::string& source, ErrorCode code,
const std::string& description,
FeedId feedId);
92 virtual ~
Error()
throw();
98 ErrorCode code()
const;
101 const char* description()
const;
104 const char* source()
const;
107 virtual const char* what()
const throw();
110 std::string toString()
const;
113 void toString(std::string&)
const;
121 SourceMaxLength = 128,
122 DescriptionMaxLength = 1024
126 char source_[SourceMaxLength];
127 char description_[DescriptionMaxLength];
132 ONIXS_ICEMDH_EXPORT std::ostream&
operator<<(std::ostream&,
const Error&);
Indicates irrecoverable log replay failure.
const char * source() const
Origin of the error.
Identifiers errors of generic nature.
const char * description() const
Human readable description of error.
Indicates absence of error.
const Optional< FeedId > & feedId() const
Feed ID (if available).
ErrorCode code() const
Code of error.
std::ostream & operator<<(std::ostream &, const Error &)
Make it printable to formatted C++ I/O streams.
Network packet received by the Handler is corrupted.
iMpact message has invalid structure.
KnownErrors::Enum ErrorCode
Error code.
std::string toString() const
String presentation of an error.
Handler configuration is invalid.
Enum
List of known errors.
int FeedId
Alias for market types.