76class ONIXS_ICEMDH_EXPORT
Error :
public std::exception
104 const
char*
source() const;
107 virtual const
char*
what() const throw();
121 SourceMaxLength = 128,
122 DescriptionMaxLength = 1024
126 char source_[SourceMaxLength];
127 char description_[DescriptionMaxLength];
Error(const Error &other)
Initializes as clone of another error.
std::string toString() const
String presentation of an error.
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.
const char * source() const
Origin of the error.
virtual ~Error()
Destruction interface.
ErrorCode code() const
Code of error.
Error(const std::string &source, ErrorCode code)
Initializes instance with just a code.
virtual const char * what() const
Human readable description of error.
const char * description() const
Human readable description of error.
const Optional< FeedId > & feedId() const
Feed ID (if available).
int FeedId
Alias for market types.
std::ostream & operator<<(std::ostream &, const Error &)
Make it printable to formatted C++ I/O streams.
KnownErrors::Enum ErrorCode
Error code.
Enum
List of known errors.
@ BadMessage
iMpact message has invalid structure.
@ Nothing
Indicates absence of error.
@ LogReplayFailure
Indicates irrecoverable log replay failure.
@ BadConfiguration
Handler configuration is invalid.
@ BadPacket
Network packet received by the Handler is corrupted.
@ Generic
Identifiers errors of generic nature.
@ MarketTypeIsNotPermitted
@ LoginFailure
Indicates ICE login failure.
static const char * toString(Enum value)
Returns string presentation of a value.