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
81 const std::string& source
87 const std::string& source
89 ,
const std::string& description
94 const std::string& source
96 ,
const std::string& description
104 virtual ~
Error()
throw();
110 ErrorCode code()
const;
113 const char* description()
const;
116 const char* source()
const;
119 virtual const char* what()
const throw();
122 std::string toString()
const;
125 void toString(std::string&)
const;
133 SourceMaxLength = 128
134 , DescriptionMaxLength = 1024
138 char source_[SourceMaxLength];
139 char description_[DescriptionMaxLength];
144 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.